Simplify. No functionality change.

Thanks to Alp Toker for noticing it.

llvm-svn: 211320
This commit is contained in:
Rafael Espindola 2014-06-19 22:33:23 +00:00
parent 70d3c20b0f
commit b201bfcbce
1 changed files with 1 additions and 2 deletions

View File

@ -322,8 +322,7 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *file,
cf.syms.push_back(ld_plugin_symbol());
ld_plugin_symbol &sym = cf.syms.back();
sym.name = const_cast<char *>(M->getSymbolName(i));
sym.name = strdup(sym.name);
sym.name = strdup(M->getSymbolName(i));
sym.version = NULL;
int scope = attrs & LTO_SYMBOL_SCOPE_MASK;