aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2020-01-29 02:09:24 +0100
committerBenjamin Kramer <benny.kra@googlemail.com>2020-01-29 02:09:24 +0100
commita9bc7b83a402f2bf7d7c55ac4c9e9a2fb2b3ea13 (patch)
treed8573ecf250239ec70094ce4db9513b11f04cbb3 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parent9a5c448a31bacc08e73fcae4636094f9b6e2be6a (diff)
downloadllvm-a9bc7b83a402f2bf7d7c55ac4c9e9a2fb2b3ea13.zip
llvm-a9bc7b83a402f2bf7d7c55ac4c9e9a2fb2b3ea13.tar.gz
llvm-a9bc7b83a402f2bf7d7c55ac4c9e9a2fb2b3ea13.tar.bz2
Another round of GCC5 fixes.
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 77f9d70..42ce33a 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -307,8 +307,8 @@ const GlobalValue *ExecutionEngine::getGlobalValueAtAddress(void *Addr) {
E = EEState.getGlobalAddressMap().end(); I != E; ++I) {
StringRef Name = I->first();
uint64_t Addr = I->second;
- EEState.getGlobalAddressReverseMap().insert(std::make_pair(
- Addr, Name));
+ EEState.getGlobalAddressReverseMap().insert(
+ std::make_pair(Addr, std::string(Name)));
}
}