diff options
author | Juergen Ributzka <juergen@apple.com> | 2014-04-22 18:06:51 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2014-04-22 18:06:51 +0000 |
commit | 0db2ba1ce88fa705ae48e200cc020d1539ed11ec (patch) | |
tree | 0943553099602b4dc6f2c29e24845eddb0998aeb /lib | |
parent | 1021014c7b665d1b7670a234ad3cb4dce90a7a6a (diff) | |
download | llvm-0db2ba1ce88fa705ae48e200cc020d1539ed11ec.tar.gz llvm-0db2ba1ce88fa705ae48e200cc020d1539ed11ec.tar.bz2 llvm-0db2ba1ce88fa705ae48e200cc020d1539ed11ec.tar.xz |
[Constant Hoisting] Print the instructions in the correct order for debugging. No functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Transforms/Scalar/ConstantHoisting.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Scalar/ConstantHoisting.cpp b/lib/Transforms/Scalar/ConstantHoisting.cpp index fc6cd540c4..9b7ed816ad 100644 --- a/lib/Transforms/Scalar/ConstantHoisting.cpp +++ b/lib/Transforms/Scalar/ConstantHoisting.cpp @@ -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'); |