[llvm-commits] CVS: llvm/lib/Transforms/LevelRaise.cpp
Reid Spencer
reid at x10sys.com
Tue Dec 12 16:50:43 PST 2006
Changes in directory llvm/lib/Transforms:
LevelRaise.cpp updated: 1.114 -> 1.115
---
Log message:
Replace CastInst::createInferredCast calls with more accurate cast
creation calls.
---
Diffs of the changes: (+2 -2)
LevelRaise.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Transforms/LevelRaise.cpp
diff -u llvm/lib/Transforms/LevelRaise.cpp:1.114 llvm/lib/Transforms/LevelRaise.cpp:1.115
--- llvm/lib/Transforms/LevelRaise.cpp:1.114 Wed Dec 6 11:46:32 2006
+++ llvm/lib/Transforms/LevelRaise.cpp Tue Dec 12 18:50:17 2006
@@ -258,8 +258,8 @@
// The existing and new operand 0 types are different so we must
// replace CI with a new CastInst so that we are assured to
// get the correct cast opcode.
- CastInst *NewCI = CastInst::createInferredCast(
- GEP, CI->getType(), CI->getName(), CI);
+ CastInst *NewCI = new BitCastInst(GEP, CI->getType(),
+ CI->getName(), CI);
CI->replaceAllUsesWith(NewCI);
CI->eraseFromParent();
CI = NewCI;
More information about the llvm-commits
mailing list