commit | b44b429549bc4c4f950d56d4f6fa0ba486856cc6 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Dec 03 00:50:42 2009 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Dec 03 00:50:42 2009 +0000 |
tree | 7ab91b372433ad7734a54a59dc91a7e9ff51faf9 | |
parent | 56eb10842f19c43f3970f6f6ba2d8b7dbf4807e9 [diff] [blame] |
improve portability to avoid conflicting with std::next in c++'0x. Patch by Howard Hinnant! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90365 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Target/SystemZ/SystemZInstrInfo.cpp b/lib/Target/SystemZ/SystemZInstrInfo.cpp index d82d928..d711d81 100644 --- a/lib/Target/SystemZ/SystemZInstrInfo.cpp +++ b/lib/Target/SystemZ/SystemZInstrInfo.cpp
@@ -454,8 +454,8 @@ } // If the block has any instructions after a JMP, delete them. - while (next(I) != MBB.end()) - next(I)->eraseFromParent(); + while (llvm::next(I) != MBB.end()) + llvm::next(I)->eraseFromParent(); Cond.clear(); FBB = 0;