]> granicus.if.org Git - clang/commitdiff
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)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174303 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/AnalysisDeclContext.cpp

index 20cc3d55f3e37b60ae472771d951d357239b0fe5..36d1dba5e3b7db484dc087263547e1e41467b670 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()) {