[ThinLTO][Legacy] Fix StringRef assertion from ThinLTO bots
authorSteven Wu <stevenwu@apple.com>
Fri, 4 Sep 2020 19:25:01 +0000 (12:25 -0700)
committerSteven Wu <stevenwu@apple.com>
Fri, 4 Sep 2020 19:30:09 +0000 (12:30 -0700)
commit97866b8de81ce71cf9ae9e50feb450335b0537a0
tree091a45bc5fba6f8d64e9f770dd52324a020f038f
parent1eae19a87f5432a60020d5a6affb0dc28a2a661b
[ThinLTO][Legacy] Fix StringRef assertion from ThinLTO bots

This is a presumed fix for FireFox thinLTO bot fix which hits assertion
failure for invalid index when access StringRef. Techinically, `IRName`
in the symtab should not be empty string for the entries we cared about
but this will help to fix the bot before more information can be
provided. Otherwise, NFCI.
llvm/lib/LTO/ThinLTOCodeGenerator.cpp