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
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp
index 5662269..c5ac8c9 100644
--- a/lib/Transforms/LevelRaise.cpp
+++ b/lib/Transforms/LevelRaise.cpp
@@ -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;