diff options
author | Anders Carlsson <andersca@mac.com> | 2009-06-26 18:41:36 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-06-26 18:41:36 +0000 |
commit | e89d15944dd3be750a09805ad21222d2fa9321fa (patch) | |
tree | c366f378cf61312ef9fe1ba0dab8279ba15c210d /lib/Sema/SemaType.cpp | |
parent | bd0fec9250a783ad67d023e53ab0877a74f0be11 (diff) |
Implement enough of the 'auto' keyword so we can claim to support N2546.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74307 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaType.cpp')
-rw-r--r-- | lib/Sema/SemaType.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Sema/SemaType.cpp b/lib/Sema/SemaType.cpp index 8a0ad089b6..b584142344 100644 --- a/lib/Sema/SemaType.cpp +++ b/lib/Sema/SemaType.cpp @@ -245,6 +245,11 @@ QualType Sema::ConvertDeclSpecToType(const DeclSpec &DS, Result = Context.getDecltypeType(E); break; } + case DeclSpec::TST_auto: { + // TypeQuals handled by caller. + Result = Context.UndeducedAutoTy; + break; + } case DeclSpec::TST_error: Result = Context.IntTy; |