aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/LevelRaise.cpp
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-12-13 00:50:17 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-12-13 00:50:17 +0000
commit7b06bd532d3324a2f76bbc856ae20ff89d8e0e92 (patch)
treecbd629912f00b8d9d35e320842aca7e1cded803e /lib/Transforms/LevelRaise.cpp
parent31b628ba6096d2b0bb5591b1231a8e4df4f6c8b8 (diff)
Replace CastInst::createInferredCast calls with more accurate cast
creation calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32521 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/LevelRaise.cpp')
-rw-r--r--lib/Transforms/LevelRaise.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp
index 56622693a2..c5ac8c98b9 100644
--- a/lib/Transforms/LevelRaise.cpp
+++ b/lib/Transforms/LevelRaise.cpp
@@ -258,8 +258,8 @@ bool RPR::PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) {
// 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;