summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJeffrey Yasskin <jyasskin@google.com>2009-08-04 23:53:16 +0000
committerJeffrey Yasskin <jyasskin@google.com>2009-08-04 23:53:16 +0000
commit337b124a24c9ec17d089705677eee8e5f23e2e30 (patch)
treeafda8b50b81ae56ae450d85281b9ac83cdcbcad2 /llvm/lib
parent7cc6aca1e60dec8144e1170a3672d7cee72da839 (diff)
downloadbcm5719-llvm-337b124a24c9ec17d089705677eee8e5f23e2e30.tar.gz
bcm5719-llvm-337b124a24c9ec17d089705677eee8e5f23e2e30.zip
Make ExecutionEngine::updateGlobalMapping(GV, NULL) properly remove GV's old
address from the reverse mapping, and add a test that this works now. llvm-svn: 78127
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 8a999da3d3f..e827d36f861 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -179,7 +179,7 @@ void *ExecutionEngine::updateGlobalMapping(const GlobalValue *GV, void *Addr) {
}
if (!state.getGlobalAddressReverseMap(locked).empty())
- state.getGlobalAddressReverseMap(locked).erase(Addr);
+ state.getGlobalAddressReverseMap(locked).erase(OldVal);
return OldVal;
}
OpenPOWER on IntegriCloud