diff options
author | Anders Carlsson <andersca@mac.com> | 2009-05-30 21:37:25 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-05-30 21:37:25 +0000 |
commit | f5dcd3885865c931fdbd16f36237af70743d53c6 (patch) | |
tree | 782410e9b9213098fe135c71b3b839f3416e77d7 /lib/Sema/SemaExprCXX.cpp | |
parent | 0578916f979c3c6e91c5dfc99b3c91d8d7ffa676 (diff) |
AddInitializerToDecl needs to take a full expression.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72640 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaExprCXX.cpp')
-rw-r--r-- | lib/Sema/SemaExprCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaExprCXX.cpp b/lib/Sema/SemaExprCXX.cpp index 641fcb7e10..18382bab21 100644 --- a/lib/Sema/SemaExprCXX.cpp +++ b/lib/Sema/SemaExprCXX.cpp @@ -744,7 +744,7 @@ Sema::ActOnCXXConditionDeclarationExpr(Scope *S, SourceLocation StartLoc, DeclPtrTy Dcl = ActOnDeclarator(S, D, DeclPtrTy()); if (!Dcl) return ExprError(); - AddInitializerToDecl(Dcl, move(AssignExprVal)); + AddInitializerToDecl(Dcl, move(AssignExprVal), /*DirectInit=*/false); // Mark this variable as one that is declared within a conditional. // We know that the decl had to be a VarDecl because that is the only type of |