Fix a use after free when the streamer is destroyed. Fixes pr12622.

llvm-svn: 156606
This commit is contained in:
Rafael Espindola 2012-05-11 03:42:13 +00:00
parent 341039faca
commit 5f4b32f9d7
1 changed files with 1 additions and 1 deletions

View File

@ -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;