Changes in directory llvm/lib/Transforms/IPO:
FunctionResolution.cpp updated: 1.63 -> 1.64 --- Log message: Change inferred getCast into specific getCast. Passes all tests. --- Diffs of the changes: (+2 -2) FunctionResolution.cpp | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) Index: llvm/lib/Transforms/IPO/FunctionResolution.cpp diff -u llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.63 llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.64 --- llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.63 Thu Dec 7 16:21:48 2006 +++ llvm/lib/Transforms/IPO/FunctionResolution.cpp Mon Dec 11 23:04:59 2006 @@ -103,7 +103,7 @@ if (!Old->use_empty()) { Value *Replacement = Concrete; if (Concrete->getType() != Old->getType()) - Replacement = ConstantExpr::getCast(Concrete, Old->getType()); + Replacement = ConstantExpr::getBitCast(Concrete, Old->getType()); NumResolved += Old->getNumUses(); Old->replaceAllUsesWith(Replacement); } @@ -122,7 +122,7 @@ for (unsigned i = 0; i != Globals.size(); ++i) if (Globals[i] != Concrete) { - Constant *Cast = ConstantExpr::getCast(Concrete, Globals[i]->getType()); + Constant *Cast = ConstantExpr::getBitCast(Concrete,Globals[i]->getType()); Globals[i]->replaceAllUsesWith(Cast); // Since there are no uses of Old anymore, remove it from the module. _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits