commit | 8cf91f7efb4dcb238fe443915d9a30119ce5b70c | [log] [tgz] |
---|---|---|
author | Anna Zaks <ganna@apple.com> | Wed Apr 10 22:56:33 2013 +0000 |
committer | Anna Zaks <ganna@apple.com> | Wed Apr 10 22:56:33 2013 +0000 |
tree | 6cc7416f3d72d98d070ef5e6c3fe8dacbb2f3321 | |
parent | ee9043ba7c6934d248d4f0e2abded18e26b81df8 [diff] [blame] |
[analyzer] Address Jordan’s review of r179219 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@179235 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp index 6163cc1..156e1f9 100644 --- a/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp +++ b/lib/StaticAnalyzer/Checkers/RetainCountChecker.cpp
@@ -2170,7 +2170,7 @@ if (FB) { const MemRegion *R = FB.getRegion(); - const VarRegion *VR = R->getAs<VarRegion>(); + const VarRegion *VR = R->getBaseRegion()->getAs<VarRegion>(); // Do not show local variables belonging to a function other than // where the error is reported. if (!VR || VR->getStackFrame() == LeakContext->getCurrentStackFrame())