diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-29 22:58:55 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-29 22:58:55 +0000 |
commit | af017e682918f7a1a95ff08d9ab7ae3426436ca3 (patch) | |
tree | 6b0b254096cee59b6cfc1a3b61c0d1f5d05b8220 /lib/Sema/SemaTemplateInstantiate.cpp | |
parent | 43a3643eaf6d411b43b01cbbf85a197ffdaba204 (diff) |
Improvements to decltype. We now don't crash anymore when the expr is an overloaded function decl.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74472 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaTemplateInstantiate.cpp')
-rw-r--r-- | lib/Sema/SemaTemplateInstantiate.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaTemplateInstantiate.cpp b/lib/Sema/SemaTemplateInstantiate.cpp index aed348966a..f05323b511 100644 --- a/lib/Sema/SemaTemplateInstantiate.cpp +++ b/lib/Sema/SemaTemplateInstantiate.cpp @@ -530,7 +530,7 @@ TemplateTypeInstantiator::InstantiateTypeOfExprType( if (E.isInvalid()) return QualType(); - return SemaRef.Context.getTypeOfExprType(E.takeAs<Expr>()); + return SemaRef.BuildTypeofExprType(E.takeAs<Expr>()); } QualType @@ -555,7 +555,7 @@ TemplateTypeInstantiator::InstantiateDecltypeType(const DecltypeType *T) const { if (E.isInvalid()) return QualType(); - return SemaRef.Context.getDecltypeType(E.takeAs<Expr>()); + return SemaRef.BuildDecltypeType(E.takeAs<Expr>()); } QualType |