[cfe-commits] r74177 - /cfe/trunk/lib/AST/Type.cpp
Anders Carlsson
andersca at mac.com
Thu Jun 25 09:06:46 PDT 2009
Author: andersca
Date: Thu Jun 25 11:06:43 2009
New Revision: 74177
URL: http://llvm.org/viewvc/llvm-project?rev=74177&view=rev
Log:
Extra asserts never hurt anybody, right?
Modified:
cfe/trunk/lib/AST/Type.cpp
Modified: cfe/trunk/lib/AST/Type.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Type.cpp?rev=74177&r1=74176&r2=74177&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Type.cpp (original)
+++ cfe/trunk/lib/AST/Type.cpp Thu Jun 25 11:06:43 2009
@@ -1056,6 +1056,8 @@
DecltypeType::DecltypeType(Expr *E, QualType can)
: Type(Decltype, can, E->isTypeDependent()), E(E) {
+ assert(can->isDependentType() == E->isTypeDependent() &&
+ "type dependency mismatch!");
assert(!isa<TypedefType>(can) && "Invalid canonical type");
}
More information about the cfe-commits
mailing list