clang/Analysis: Fix r174245, a valgrind error in AnalysisDeclContext::getBody(bool &IsAutosynthesized), to initialize IsAutosynthesized explicitly.

llvm-svn: 174303
This commit is contained in:
NAKAMURA Takumi
2013-02-04 05:06:21 +00:00
parent e743a30850
commit cc4aaef0f2

View File

@@ -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()) {