Changes in directory llvm/lib/Transforms/Scalar:
LowerGC.cpp updated: 1.15 -> 1.16 --- Log message: Replace CastInst::createInferredCast calls with more accurate cast creation calls. --- Diffs of the changes: (+1 -2) LowerGC.cpp | 3 +-- 1 files changed, 1 insertion(+), 2 deletions(-) Index: llvm/lib/Transforms/Scalar/LowerGC.cpp diff -u llvm/lib/Transforms/Scalar/LowerGC.cpp:1.15 llvm/lib/Transforms/Scalar/LowerGC.cpp:1.16 --- llvm/lib/Transforms/Scalar/LowerGC.cpp:1.15 Sun Nov 26 19:05:10 2006 +++ llvm/lib/Transforms/Scalar/LowerGC.cpp Tue Dec 12 18:50:17 2006 @@ -146,8 +146,7 @@ if (Constant *C = dyn_cast<Constant>(I->getOperand(OpNum))) I->setOperand(OpNum, ConstantExpr::getBitCast(C, Ty)); else { - CastInst *CI = - CastInst::createInferredCast(I->getOperand(OpNum), Ty, "", I); + CastInst *CI = new BitCastInst(I->getOperand(OpNum), Ty, "", I); I->setOperand(OpNum, CI); } } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits