diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-07-30 23:36:40 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-07-30 23:36:40 +0000 |
commit | 9d702ae1cd5cfa19d884cbef77e1df99395138bb (patch) | |
tree | b84176d0d4001323cf52441f3a6689e526917ac4 /lib/AST/Type.cpp | |
parent | c7ff8e19081c2e974f05f66c4fa9b40750fc655f (diff) |
Canonicalization of dependent C++0x decltype types.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77643 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 76d35465fe..c8e317c7d3 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -968,6 +968,14 @@ DecltypeType::DecltypeType(Expr *E, QualType underlyingType, QualType can) UnderlyingType(underlyingType) { } +DependentDecltypeType::DependentDecltypeType(ASTContext &Context, Expr *E) + : DecltypeType(E, Context.DependentTy), Context(Context) { } + +void DependentDecltypeType::Profile(llvm::FoldingSetNodeID &ID, + ASTContext &Context, Expr *E) { + E->Profile(ID, Context, true); +} + TagType::TagType(TypeClass TC, TagDecl *D, QualType can) : Type(TC, can, D->isDependentType()), decl(D, 0) {} |