mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Fix a use after free when the streamer is destroyed. Fixes pr12622.
llvm-svn: 156606
This commit is contained in:
parent
e579470749
commit
b550a4f952
@ -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