diff options
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r-- | clang/lib/Analysis/CFRefCount.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp index cfeabd0cb1b..7443c521b3b 100644 --- a/clang/lib/Analysis/CFRefCount.cpp +++ b/clang/lib/Analysis/CFRefCount.cpp @@ -2903,7 +2903,8 @@ CFRefLeakReport::getEndPath(BugReporter& br, const ExplodedNode<GRState>* EndN){ } if (!L.isValid()) { - CompoundStmt *CS = BR.getStateManager().getCodeDecl().getBody(); + CompoundStmt *CS + = BR.getStateManager().getCodeDecl().getBody(BR.getContext()); L = PathDiagnosticLocation(CS->getRBracLoc(), SMgr); } |