aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/Type.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-06-25 16:06:43 +0000
committerAnders Carlsson <andersca@mac.com>2009-06-25 16:06:43 +0000
commit3d2065b6efaa62d345fc3a3d8a6651215e9767b2 (patch)
tree3418c94b3beed725090a0d6e9f3dd9d24cbc8cfb /lib/AST/Type.cpp
parenta07c33e64e1169e4261f7748c7f9191091a3ad2e (diff)
Extra asserts never hurt anybody, right?
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74177 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r--lib/AST/Type.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp
index 4dfe35ea41..d76cd249a7 100644
--- a/lib/AST/Type.cpp
+++ b/lib/AST/Type.cpp
@@ -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");
}