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 | 22c0cbee5bb2150841e0046354fd37ba22de747a (patch) | |
tree | e8e43a5c5f161d1c674a904d75b76a73ef9067b3 /lib/Analysis/AnalysisDeclContext.cpp | |
parent | 93aa2db250a0e67192ab2a5417e4dfd5530d6f56 (diff) |
clang/Analysis: Fix r174245, a valgrind error in AnalysisDeclContext::getBody(bool &IsAutosynthesized), to initialize IsAutosynthesized explicitly.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@174303 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/AnalysisDeclContext.cpp')
-rw-r--r-- | lib/Analysis/AnalysisDeclContext.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Analysis/AnalysisDeclContext.cpp b/lib/Analysis/AnalysisDeclContext.cpp index 20cc3d55f3..36d1dba5e3 100644 --- a/lib/Analysis/AnalysisDeclContext.cpp +++ b/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()) { |