clang/Analysis: Fix r174245, a valgrind error in AnalysisDeclContext::getBody(bool &IsAutosynthesized), to initialize IsAutosynthesized explicitly.
llvm-svn: 174303
This commit is contained in:
@@ -87,6 +87,7 @@ static BodyFarm &getBodyFarm(ASTContext &C) {
|
||||
}
|
||||
|
||||
Stmt *AnalysisDeclContext::getBody(bool &IsAutosynthesized) const {
|
||||
IsAutosynthesized = false;
|
||||
if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(D)) {
|
||||
Stmt *Body = FD->getBody();
|
||||
if (!Body && Manager && Manager->synthesizeBodies()) {
|
||||
|
||||
Reference in New Issue
Block a user