Extra asserts never hurt anybody, right?

llvm-svn: 74177
This commit is contained in:
Anders Carlsson 2009-06-25 16:06:43 +00:00
parent 8f74c88cb6
commit 7972b14007
1 changed files with 2 additions and 0 deletions

View File

@ -1056,6 +1056,8 @@ TypeOfExprType::TypeOfExprType(Expr *E, QualType can)
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");
}