diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-24 21:24:56 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-24 21:24:56 +0000 |
commit | 60a9a2a404a4cf259d39133383e922aa00ca9043 (patch) | |
tree | 5dece031a065bcb20b0eda724eaab055a37a3e57 /lib/Sema/SemaType.cpp | |
parent | 08fa2af5f60cdcb65b554ce2afe39016475cade4 (diff) |
C++ decltype support (N2343)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 297dee9a50..12077b0671 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -240,10 +240,7 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS, Expr *E = static_cast<Expr *>(DS.getTypeRep()); assert(E && "Didn't get an expression for decltype?"); // TypeQuals handled by caller. - - // FIXME: Use the right type! - Result = Context.IntTy; - isInvalid = true; + Result = Context.getDecltypeType(E); break; } |