mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-02 07:11:49 +00:00
Fix a use after free when the streamer is destroyed. Fixes pr12622.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2b7ab5eb49
commit
383fd7afd9
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user