summaryrefslogtreecommitdiffstats
path: root/llvm/tools/lto
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/lto')
-rw-r--r--llvm/tools/lto/LTOModule.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/lto/LTOModule.cpp b/llvm/tools/lto/LTOModule.cpp
index 1dbd64bdc0b..9a7d76832a1 100644
--- a/llvm/tools/lto/LTOModule.cpp
+++ b/llvm/tools/lto/LTOModule.cpp
@@ -409,7 +409,7 @@ void LTOModule::addAsmGlobalSymbol(const char *name,
// much.
// fill information structure
- info.name = name;
+ info.name = entry.getKey().data();
info.attributes =
LTO_SYMBOL_PERMISSIONS_DATA | LTO_SYMBOL_DEFINITION_REGULAR | scope;
info.isFunction = false;
OpenPOWER on IntegriCloud