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 | 337b124a24c9ec17d089705677eee8e5f23e2e30 (patch) | |
| tree | afda8b50b81ae56ae450d85281b9ac83cdcbcad2 /llvm/lib | |
| parent | 7cc6aca1e60dec8144e1170a3672d7cee72da839 (diff) | |
| download | bcm5719-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.cpp | 2 |
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; } |

