diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-12-06 07:17:20 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-12-06 07:17:20 +0000 |
commit | bcf905326cf08b7385a89fafe44785daf850649d (patch) | |
tree | 49bd797e771315b833088966795ef53906e627e5 /clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp | |
parent | ff989016c1dc09e235422c7c77d514960f8a2e03 (diff) | |
download | bcm5719-llvm-bcf905326cf08b7385a89fafe44785daf850649d.tar.gz bcm5719-llvm-bcf905326cf08b7385a89fafe44785daf850649d.zip |
Only provide explicit getCapturedRegion() and getOriginalRegion() from referenced_vars_iterator.
This is a nice conceptual cleanup.
llvm-svn: 169480
Diffstat (limited to 'clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp b/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp index 865cbad8a0f..3f8363762fd 100644 --- a/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp +++ b/clang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp @@ -68,7 +68,7 @@ UndefCapturedBlockVarChecker::checkPostStmt(const BlockExpr *BE, for (; I != E; ++I) { // This VarRegion is the region associated with the block; we need // the one associated with the encompassing context. - const VarRegion *VR = *I; + const VarRegion *VR = I.getCapturedRegion(); const VarDecl *VD = VR->getDecl(); if (VD->getAttr<BlocksAttr>() || !VD->hasLocalStorage()) |