aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/LiveVariables.cpp
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-11-10 01:17:45 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-11-10 01:17:45 +0000
commit3958b502404b4bd67f26fee398cb347abe89e6a8 (patch)
tree9a9f9e9aea185ffa1d02fe3a609aa0cd40207d0c /lib/Analysis/LiveVariables.cpp
parent89f8c1d40e22f498263dc4b00ed996e1817159b3 (diff)
Fix clang's use of DenseMap iterators after r86636 fixed their constness.
Patch by Victor Zverovich! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@86638 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LiveVariables.cpp')
-rw-r--r--lib/Analysis/LiveVariables.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/LiveVariables.cpp b/lib/Analysis/LiveVariables.cpp
index 070481fa14..2510445a7f 100644
--- a/lib/Analysis/LiveVariables.cpp
+++ b/lib/Analysis/LiveVariables.cpp
@@ -346,7 +346,7 @@ void LiveVariables::dumpLiveness(const ValTy& V, const SourceManager& SM) const
}
void LiveVariables::dumpBlockLiveness(const SourceManager& M) const {
- for (BlockDataMapTy::iterator I = getBlockDataMap().begin(),
+ for (BlockDataMapTy::const_iterator I = getBlockDataMap().begin(),
E = getBlockDataMap().end(); I!=E; ++I) {
llvm::errs() << "\n[ B" << I->first->getBlockID()
<< " (live variables at block exit) ]\n";