diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-07-30 23:18:24 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-07-30 23:18:24 +0000 |
commit | b197572cf1cd70a817a1f546478cb2cb9112c48e (patch) | |
tree | 478c5a2caa30004f0c3662d9f9f5c4d43be3d4ab /lib/AST/Type.cpp | |
parent | 03e205031b08669f05c41eed5b896fc94c4a12bb (diff) |
Canonicalization for dependent typeof(expr) types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77639 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 789bac3c7e..76d35465fe 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -958,6 +958,11 @@ TypeOfExprType::TypeOfExprType(Expr *E, QualType can) : Type(TypeOfExpr, can, E->isTypeDependent()), TOExpr(E) { } +void DependentTypeOfExprType::Profile(llvm::FoldingSetNodeID &ID, + ASTContext &Context, Expr *E) { + E->Profile(ID, Context, true); +} + DecltypeType::DecltypeType(Expr *E, QualType underlyingType, QualType can) : Type(Decltype, can, E->isTypeDependent()), E(E), UnderlyingType(underlyingType) { |