diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-09 03:16:50 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-09 03:16:50 +0000 |
commit | 4d01fff4923795055c19272d08247d66cc2ed1fd (patch) | |
tree | a35c029350f0ddb710086981cf1aa1c451baabc1 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | cdf4788401afff02e12279fc1fded94d6180639c (diff) | |
download | llvm-4d01fff4923795055c19272d08247d66cc2ed1fd.zip llvm-4d01fff4923795055c19272d08247d66cc2ed1fd.tar.gz llvm-4d01fff4923795055c19272d08247d66cc2ed1fd.tar.bz2 |
[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/CodeGenFunction.cpp')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp index d35ab73..5028d5d 100644 --- a/clang/lib/CodeGen/CodeGenFunction.cpp +++ b/clang/lib/CodeGen/CodeGenFunction.cpp @@ -158,7 +158,7 @@ void CodeGenFunction::EmitReturnBlock() { // cleans up functions which started with a unified return block. if (ReturnBlock.getBlock()->hasOneUse()) { llvm::BranchInst *BI = - dyn_cast<llvm::BranchInst>(*ReturnBlock.getBlock()->use_begin()); + dyn_cast<llvm::BranchInst>(*ReturnBlock.getBlock()->user_begin()); if (BI && BI->isUnconditional() && BI->getSuccessor(0) == ReturnBlock.getBlock()) { // Reset insertion point, including debug location, and delete the |