diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-03 00:50:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-03 00:50:42 +0000 |
commit | 7896c9f436a4eda5ec15e882a7505ba482a2fcd0 (patch) | |
tree | 7ab91b372433ad7734a54a59dc91a7e9ff51faf9 /lib/CodeGen/TargetInstrInfoImpl.cpp | |
parent | dd5eb023048d0ac69721eb919d3ef1bbaee2e1ce (diff) | |
download | external_llvm-7896c9f436a4eda5ec15e882a7505ba482a2fcd0.tar.gz external_llvm-7896c9f436a4eda5ec15e882a7505ba482a2fcd0.tar.bz2 external_llvm-7896c9f436a4eda5ec15e882a7505ba482a2fcd0.zip |
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
Diffstat (limited to 'lib/CodeGen/TargetInstrInfoImpl.cpp')
-rw-r--r-- | lib/CodeGen/TargetInstrInfoImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/TargetInstrInfoImpl.cpp b/lib/CodeGen/TargetInstrInfoImpl.cpp index 102e2a34a9..393e315a32 100644 --- a/lib/CodeGen/TargetInstrInfoImpl.cpp +++ b/lib/CodeGen/TargetInstrInfoImpl.cpp @@ -329,7 +329,7 @@ TargetInstrInfo::isReallyTriviallyReMaterializableGeneric(const MachineInstr * return false; // For the def, it should be the only def of that register. - if (MO.isDef() && (next(MRI.def_begin(Reg)) != MRI.def_end() || + if (MO.isDef() && (llvm::next(MRI.def_begin(Reg)) != MRI.def_end() || MRI.isLiveIn(Reg))) return false; |