diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-02-04 05:06:21 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2013-02-04 05:06:21 +0000 |
commit | cc4aaef0f284e974c233f9d5af60af9003f83256 (patch) | |
tree | 8afd435574b544c2fbd726dd5ed7621cd02ad87b | |
parent | e743a30850bfa55eecc044f7a4d2feb752f66460 (diff) | |
download | bcm5719-llvm-cc4aaef0f284e974c233f9d5af60af9003f83256.tar.gz bcm5719-llvm-cc4aaef0f284e974c233f9d5af60af9003f83256.zip |
clang/Analysis: Fix r174245, a valgrind error in AnalysisDeclContext::getBody(bool &IsAutosynthesized), to initialize IsAutosynthesized explicitly.
llvm-svn: 174303
-rw-r--r-- | clang/lib/Analysis/AnalysisDeclContext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Analysis/AnalysisDeclContext.cpp b/clang/lib/Analysis/AnalysisDeclContext.cpp index 20cc3d55f3e..36d1dba5e3b 100644 --- a/clang/lib/Analysis/AnalysisDeclContext.cpp +++ b/clang/lib/Analysis/AnalysisDeclContext.cpp @@ -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()) { |