aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/CFRefCount.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Analysis/CFRefCount.cpp')
-rw-r--r--lib/Analysis/CFRefCount.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp
index 77b23327e0..315bdcf689 100644
--- a/lib/Analysis/CFRefCount.cpp
+++ b/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;