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);


_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to