diff options
Diffstat (limited to 'lib/StaticAnalyzer/Core/LoopUnrolling.cpp')
| -rw-r--r-- | lib/StaticAnalyzer/Core/LoopUnrolling.cpp | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/LoopUnrolling.cpp b/lib/StaticAnalyzer/Core/LoopUnrolling.cpp index 9838249ae82c..1a09a521f116 100644 --- a/lib/StaticAnalyzer/Core/LoopUnrolling.cpp +++ b/lib/StaticAnalyzer/Core/LoopUnrolling.cpp @@ -165,7 +165,9 @@ static bool isPossiblyEscaped(const VarDecl *VD, ExplodedNode *N) {      return true;    while (!N->pred_empty()) { -    const Stmt *S = PathDiagnosticLocation::getStmt(N); +    // FIXME: getStmtForDiagnostics() does nasty things in order to provide +    // a valid statement for body farms, do we need this behavior here? +    const Stmt *S = N->getStmtForDiagnostics();      if (!S) {        N = N->getFirstPred();        continue;  | 
