summaryrefslogtreecommitdiffstats
path: root/lldb/source/Expression/ASTResultSynthesizer.cpp
diff options
context:
space:
mode:
authorSean Callanan <scallanan@apple.com>2011-03-15 00:17:19 +0000
committerSean Callanan <scallanan@apple.com>2011-03-15 00:17:19 +0000
commitfb0b7583a783723762840172c251fe57b67eb3a6 (patch)
treec472a9861a17807e891b5369c7da021d66949f17 /lldb/source/Expression/ASTResultSynthesizer.cpp
parentdfeda0934506c8e90b38ee7edfac5ffabb5300ea (diff)
downloadbcm5719-llvm-fb0b7583a783723762840172c251fe57b67eb3a6.tar.gz
bcm5719-llvm-fb0b7583a783723762840172c251fe57b67eb3a6.zip
Updated to LLVM/Clang revision 127600.
llvm-svn: 127634
Diffstat (limited to 'lldb/source/Expression/ASTResultSynthesizer.cpp')
-rw-r--r--lldb/source/Expression/ASTResultSynthesizer.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/lldb/source/Expression/ASTResultSynthesizer.cpp b/lldb/source/Expression/ASTResultSynthesizer.cpp
index dcb18f4737b..bae92766f2a 100644
--- a/lldb/source/Expression/ASTResultSynthesizer.cpp
+++ b/lldb/source/Expression/ASTResultSynthesizer.cpp
@@ -320,6 +320,7 @@ ASTResultSynthesizer::SynthesizeBodyResult (CompoundStmt *Body,
result_decl = VarDecl::Create(Ctx,
DC,
SourceLocation(),
+ SourceLocation(),
&result_ptr_id,
ptr_qual_type,
NULL,
@@ -331,7 +332,7 @@ ASTResultSynthesizer::SynthesizeBodyResult (CompoundStmt *Body,
ExprResult address_of_expr = m_sema->CreateBuiltinUnaryOp(SourceLocation(), UO_AddrOf, last_expr);
- m_sema->AddInitializerToDecl(result_decl, address_of_expr.take());
+ m_sema->AddInitializerToDecl(result_decl, address_of_expr.take(), true, true);
}
else
{
@@ -339,7 +340,8 @@ ASTResultSynthesizer::SynthesizeBodyResult (CompoundStmt *Body,
result_decl = VarDecl::Create(Ctx,
DC,
- SourceLocation(),
+ SourceLocation(),
+ SourceLocation(),
&result_id,
expr_qual_type,
NULL,
@@ -349,7 +351,7 @@ ASTResultSynthesizer::SynthesizeBodyResult (CompoundStmt *Body,
if (!result_decl)
return false;
- m_sema->AddInitializerToDecl(result_decl, last_expr);
+ m_sema->AddInitializerToDecl(result_decl, last_expr, true, true);
}
DC->addDecl(result_decl);
OpenPOWER on IntegriCloud