[cfe-commits] r39422 - /cfe/cfe/trunk/AST/ASTContext.cpp
Steve Naroff
snaroff at apple.com
Wed Jul 11 09:44:11 PDT 2007
Author: snaroff
Date: Wed Jul 11 11:44:11 2007
New Revision: 39422
URL: http://llvm.org/viewvc/llvm-project?rev=39422&view=rev
Log:
Bug #:
Submitted by:
Reviewed by:
Minor change to assert logic.
Modified:
cfe/cfe/trunk/AST/ASTContext.cpp
Modified: cfe/cfe/trunk/AST/ASTContext.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/AST/ASTContext.cpp?rev=39422&r1=39421&r2=39422&view=diff
==============================================================================
--- cfe/cfe/trunk/AST/ASTContext.cpp (original)
+++ cfe/cfe/trunk/AST/ASTContext.cpp Wed Jul 11 11:44:11 2007
@@ -324,10 +324,9 @@
return 6;
}
}
- if (const TagType *TT = cast<TagType>(t.getCanonicalType()))
- if (TT->getDecl()->getKind() == Decl::Enum)
- return 4;
- assert(0 && "GetIntegerRank(): not a built-in integer or enum constant");
+ const TagType *TT = cast<TagType>(t.getCanonicalType());
+ assert(TT->getDecl()->getKind() == Decl::Enum && "not an int or enum");
+ return 4;
}
/// getFloatingRank - Return a relative rank for floating point types.
More information about the cfe-commits
mailing list