clang/Analysis: Fix r174245, a valgrind error in AnalysisDeclContext::getBody(bool...
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 4 Feb 2013 05:06:21 +0000 (05:06 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 4 Feb 2013 05:06:21 +0000 (05:06 +0000)
llvm-svn: 174303

clang/lib/Analysis/AnalysisDeclContext.cpp

index 20cc3d5..36d1dba 100644 (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()) {