diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2009-08-04 23:53:16 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2009-08-04 23:53:16 +0000 |
commit | 0a962314fb5b3e9654ad9ab50b7d1b684f154270 (patch) | |
tree | 81d9e3b6a92588a5a98d7a77df44fdab62fa9984 /lib/ExecutionEngine | |
parent | 35d6c41fde95422fb8483be0ac0af2b1425a4b13 (diff) | |
download | external_llvm-0a962314fb5b3e9654ad9ab50b7d1b684f154270.zip external_llvm-0a962314fb5b3e9654ad9ab50b7d1b684f154270.tar.gz external_llvm-0a962314fb5b3e9654ad9ab50b7d1b684f154270.tar.bz2 |
Make ExecutionEngine::updateGlobalMapping(GV, NULL) properly remove GV's old
address from the reverse mapping, and add a test that this works now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78127 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r-- | lib/ExecutionEngine/ExecutionEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 8a999da..e827d36 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/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; } |