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 | 2201e59542025cdce2d92988a40e9fc520340ef3 (patch) | |
| tree | cb46bc120d68429e1a8d7bef279254ba93766a6f /lib/CodeGen/CodeGenFunction.cpp | |
| parent | df4c4c09eeb747af3a42734a895879ed0289fa1a (diff) | |
| download | clang-2201e59542025cdce2d92988a40e9fc520340ef3.tar.gz clang-2201e59542025cdce2d92988a40e9fc520340ef3.tar.bz2 clang-2201e59542025cdce2d92988a40e9fc520340ef3.tar.xz | |
[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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203365 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
| -rw-r--r-- | lib/CodeGen/CodeGenFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp index d35ab739e6..5028d5ddec 100644 --- a/lib/CodeGen/CodeGenFunction.cpp +++ b/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 |
