Removed some superfluous code. The getType() method and associated

assert is now done in UsualUnaryConversions().


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@39818 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Steve Naroff 2007-07-13 17:39:21 +00:00
Родитель c35717a1b3
Коммит ba61c14bc9
1 изменённых файлов: 3 добавлений и 11 удалений

Просмотреть файл

@ -483,17 +483,9 @@ ParseCastExpr(SourceLocation LParenLoc, TypeTy *Ty,
inline QualType Sema::CheckConditionalOperands( // C99 6.5.15
Expr *&cond, Expr *&lex, Expr *&rex, SourceLocation questionLoc) {
QualType condT = cond->getType();
QualType lexT = lex->getType();
QualType rexT = rex->getType();
assert(!condT.isNull() && "ParseConditionalOp(): no conditional type");
assert(!lexT.isNull() && "ParseConditionalOp(): no lhs type");
assert(!rexT.isNull() && "ParseConditionalOp(): no rhs type");
condT = UsualUnaryConversions(cond);
lexT = UsualUnaryConversions(lex);
rexT = UsualUnaryConversions(rex);
QualType condT = UsualUnaryConversions(cond);
QualType lexT = UsualUnaryConversions(lex);
QualType rexT = UsualUnaryConversions(rex);
// first, check the condition.
if (!condT->isScalarType()) { // C99 6.5.15p2