[llvm-commits] CVS: llvm/lib/Transforms/IPO/FunctionResolution.cpp
Reid Spencer
reid at x10sys.com
Mon Dec 11 21:05:24 PST 2006
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.
More information about the llvm-commits
mailing list