[llvm-commits] [llvm-gcc-4.0] r42136 - /llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Sep 19 09:13:48 PDT 2007
Author: asl
Date: Wed Sep 19 11:13:48 2007
New Revision: 42136
URL: http://llvm.org/viewvc/llvm-project?rev=42136&view=rev
Log:
Use proper value in the map instead of one being deleted. This fixes PR1685
Modified:
llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
Modified: llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp?rev=42136&r1=42135&r2=42136&view=diff
==============================================================================
--- llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp (original)
+++ llvm-gcc-4.0/trunk/gcc/llvm-backend.cpp Wed Sep 19 11:13:48 2007
@@ -806,6 +806,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