[llvm-commits] [llvm-gcc-4.2] r42138 - /llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Sep 19 09:17:07 PDT 2007
Author: asl
Date: Wed Sep 19 11:17:06 2007
New Revision: 42138
URL: http://llvm.org/viewvc/llvm-project?rev=42138&view=rev
Log:
Forward port of PR42136: properly update map if global is deleted
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp?rev=42138&r1=42137&r2=42138&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-backend.cpp Wed Sep 19 11:17:06 2007
@@ -817,6 +817,7 @@
AttributeUsedGlobals.remove(GV);
AttributeUsedGlobals.insert(NGV);
}
+ changeLLVMValue(GV, NGV);
delete GV;
SET_DECL_LLVM(decl, NGV);
GV = NGV;
More information about the llvm-commits
mailing list