summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Analysis/CFRefCount.cpp')
-rw-r--r--clang/lib/Analysis/CFRefCount.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Analysis/CFRefCount.cpp b/clang/lib/Analysis/CFRefCount.cpp
index 77b23327e04..315bdcf6899 100644
--- a/clang/lib/Analysis/CFRefCount.cpp
+++ b/clang/lib/Analysis/CFRefCount.cpp
@@ -2427,9 +2427,8 @@ CFRefLeakReport::getEndPath(BugReporter& br, const ExplodedNode<GRState>* EndN){
}
if (!L.isValid()) {
- L = PathDiagnosticLocation(
- BR.getStateManager().getCodeDecl().getBodyRBrace(BR.getContext()),
- SMgr);
+ const Decl &D = BR.getStateManager().getCodeDecl();
+ L = PathDiagnosticLocation(D.getBodyRBrace(BR.getContext()), SMgr);
}
std::string sbuf;
OpenPOWER on IntegriCloud