summaryrefslogtreecommitdiffstats
path: root/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2015-12-04 05:27:29 +0000
committerCraig Topper <craig.topper@gmail.com>2015-12-04 05:27:29 +0000
commit37a9df4e20688681604536b1570da7426da4ceed (patch)
tree36519b094771d0627d566685e0758bab1437e3cc /include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
parent8ecadd5aac7765fa112e8045419a1508f96fce67 (diff)
Fix an unused variable warning in released builds. While there use 'auto' to simplify code.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@254704 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h')
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
index 2e9add60f3..8d1e4b9c5d 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
+++ b/include/clang/StaticAnalyzer/Core/PathSensitive/CallEvent.h
@@ -521,9 +521,8 @@ public:
const BlockDataRegion *BR = getBlockRegion();
assert(BR && "Block converted from lambda must have a block region");
- BlockDataRegion::referenced_vars_iterator I = BR->referenced_vars_begin(),
- E = BR->referenced_vars_end();
- assert(I != E);
+ auto I = BR->referenced_vars_begin();
+ assert(I != BR->referenced_vars_end());
return I.getCapturedRegion();
}