summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCleanup.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-09 03:16:50 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-09 03:16:50 +0000
commit4d01fff4923795055c19272d08247d66cc2ed1fd (patch)
treea35c029350f0ddb710086981cf1aa1c451baabc1 /clang/lib/CodeGen/CGCleanup.cpp
parentcdf4788401afff02e12279fc1fded94d6180639c (diff)
downloadbcm5719-llvm-4d01fff4923795055c19272d08247d66cc2ed1fd.tar.gz
bcm5719-llvm-4d01fff4923795055c19272d08247d66cc2ed1fd.zip
[C++11] Update Clang for the change to LLVM's Use-Def chain iterators in
r203364: what was use_iterator is now user_iterator, and there is a use_iterator for directly iterating over the uses. This also switches to use the range-based APIs where appropriate. llvm-svn: 203365
Diffstat (limited to 'clang/lib/CodeGen/CGCleanup.cpp')
-rw-r--r--clang/lib/CodeGen/CGCleanup.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGCleanup.cpp b/clang/lib/CodeGen/CGCleanup.cpp
index 3cf21bb9c33..8748224b3e5 100644
--- a/clang/lib/CodeGen/CGCleanup.cpp
+++ b/clang/lib/CodeGen/CGCleanup.cpp
@@ -528,7 +528,7 @@ static void destroyOptimisticNormalEntry(CodeGenFunction &CGF,
llvm::BasicBlock *unreachableBB = CGF.getUnreachableBlock();
for (llvm::BasicBlock::use_iterator
i = entry->use_begin(), e = entry->use_end(); i != e; ) {
- llvm::Use &use = i.getUse();
+ llvm::Use &use = *i;
++i;
use.set(unreachableBB);
OpenPOWER on IntegriCloud