diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-26 14:36:30 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2013-04-26 14:36:30 +0000 |
commit | bebf5b1bcfbf591dd3cd80c4aebd6486bb34f41c (patch) | |
tree | 986b8fc5afeef78149df9a104df35b2be3cf8e67 /lib/Sema/SemaInit.cpp | |
parent | 4f1d1551ed48e2ac52f5614ba8f94e2931546b51 (diff) |
C++1y: support simple variable assignments in constexpr functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaInit.cpp')
-rw-r--r-- | lib/Sema/SemaInit.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaInit.cpp b/lib/Sema/SemaInit.cpp index 0e513992ba..3c942fa40e 100644 --- a/lib/Sema/SemaInit.cpp +++ b/lib/Sema/SemaInit.cpp @@ -97,6 +97,7 @@ static void CheckStringInit(Expr *Str, QualType &DeclT, const ArrayType *AT, DeclT = S.Context.getConstantArrayType(IAT->getElementType(), ConstVal, ArrayType::Normal, 0); + Str->setType(DeclT); return; } |