[llvm-commits] [126951] Fix PR1252, patch by Anton K.
clattner at apple.com
clattner at apple.com
Sat May 5 14:40:50 PDT 2007
Revision: 126951
Author: clattner
Date: 2007-05-05 14:40:50 -0700 (Sat, 05 May 2007)
Log Message:
-----------
Fix PR1252, patch by Anton K.
Modified Paths:
--------------
apple-local/branches/llvm/gcc/llvm-convert.cpp
Modified: apple-local/branches/llvm/gcc/llvm-convert.cpp
===================================================================
--- apple-local/branches/llvm/gcc/llvm-convert.cpp 2007-05-05 18:15:40 UTC (rev 126950)
+++ apple-local/branches/llvm/gcc/llvm-convert.cpp 2007-05-05 21:40:50 UTC (rev 126951)
@@ -517,6 +517,7 @@
if (FnEntry) {
FnEntry->replaceAllUsesWith(ConstantExpr::getBitCast(Fn,
FnEntry->getType()));
+ changeLLVMValue(FnEntry, Fn);
FnEntry->eraseFromParent();
}
SET_DECL_LLVM(FnDecl, Fn);
More information about the llvm-commits
mailing list