[Constant Hoisting] Print the instructions in the correct order for debugging. No...
authorJuergen Ributzka <juergen@apple.com>
Tue, 22 Apr 2014 18:06:51 +0000 (18:06 +0000)
committerJuergen Ributzka <juergen@apple.com>
Tue, 22 Apr 2014 18:06:51 +0000 (18:06 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206912 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/ConstantHoisting.cpp

index fc6cd540c47e98bcf9cf95b01c3aceb8eb914213..9b7ed816ad985e5e6d5b2f91ac41691fd6db4a9e 100644 (file)
@@ -488,8 +488,8 @@ void ConstantHoisting::emitBaseConstants(Instruction *Base, Constant *Offset,
       ClonedCastInst->insertAfter(CastInst);
       // Use the same debug location as the original cast instruction.
       ClonedCastInst->setDebugLoc(CastInst->getDebugLoc());
-      DEBUG(dbgs() << "Clone instruction: " << *ClonedCastInst << '\n'
-                   << "To               : " << *CastInst << '\n');
+      DEBUG(dbgs() << "Clone instruction: " << *CastInst << '\n'
+                   << "To               : " << *ClonedCastInst << '\n');
     }
 
     DEBUG(dbgs() << "Update: " << *ConstUser.Inst << '\n');