[llvm-commits] CVS: llvm/lib/Bytecode/Reader/Reader.cpp
Reid Spencer
reid at x10sys.com
Wed Jan 18 17:21:16 PST 2006
Changes in directory llvm/lib/Bytecode/Reader:
Reader.cpp updated: 1.178 -> 1.179
---
Log message:
Make sure intrinsic auto-upgrade is invoked correctly.
---
Diffs of the changes: (+5 -0)
Reader.cpp | 5 +++++
1 files changed, 5 insertions(+)
Index: llvm/lib/Bytecode/Reader/Reader.cpp
diff -u llvm/lib/Bytecode/Reader/Reader.cpp:1.178 llvm/lib/Bytecode/Reader/Reader.cpp:1.179
--- llvm/lib/Bytecode/Reader/Reader.cpp:1.178 Tue Jan 17 14:06:35 2006
+++ llvm/lib/Bytecode/Reader/Reader.cpp Wed Jan 18 19:21:04 2006
@@ -857,6 +857,11 @@
}
Result = new CallInst(F, Params);
+ if (CallInst* newCI = UpgradeIntrinsicCall(cast<CallInst>(Result))) {
+ Result->replaceAllUsesWith(newCI);
+ Result->eraseFromParent();
+ Result = newCI;
+ }
if (isTailCall) cast<CallInst>(Result)->setTailCall();
if (CallingConv) cast<CallInst>(Result)->setCallingConv(CallingConv);
break;
More information about the llvm-commits
mailing list