R600: Don't compare iterators of different maps.
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 7 Jun 2013 19:59:34 +0000 (19:59 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 7 Jun 2013 19:59:34 +0000 (19:59 +0000)
Found be libstdc's debug mode.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183549 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/R600/AMDGPUIndirectAddressing.cpp

index ed6c8ec55dd2a90d3bfe56e3eb1131b518d9efdc..14b9e4fe0e3f348bddb6c968567bc3f96f260e2f 100644 (file)
@@ -224,7 +224,7 @@ bool AMDGPUIndirectAddressingPass::runOnMachineFunction(MachineFunction &MF) {
             unsigned LiveAddress = RegisterAddressMap[Reg];
             // Chain the live-ins
             if (LiveAddressRegisterMap.find(LiveAddress) !=
-                                                     RegisterAddressMap.end()) {
+                LiveAddressRegisterMap.end()) {
               MI.addOperand(MachineOperand::CreateReg(
                                   LiveAddressRegisterMap[LiveAddress],
                                   false, // isDef