Update to match clang r291737.

llvm-svn: 291738
This commit is contained in:
Richard Smith 2017-01-12 02:37:54 +00:00
parent 3beb7c6b5f
commit 2245293541
1 changed files with 2 additions and 3 deletions

View File

@ -346,8 +346,7 @@ bool ASTResultSynthesizer::SynthesizeBodyResult(CompoundStmt *Body,
ExprResult address_of_expr =
m_sema->CreateBuiltinUnaryOp(SourceLocation(), UO_AddrOf, last_expr);
if (address_of_expr.get())
m_sema->AddInitializerToDecl(result_decl, address_of_expr.get(), true,
false);
m_sema->AddInitializerToDecl(result_decl, address_of_expr.get(), true);
else
return false;
} else {
@ -359,7 +358,7 @@ bool ASTResultSynthesizer::SynthesizeBodyResult(CompoundStmt *Body,
if (!result_decl)
return false;
m_sema->AddInitializerToDecl(result_decl, last_expr, true, false);
m_sema->AddInitializerToDecl(result_decl, last_expr, true);
}
DC->addDecl(result_decl);