Fix build breakage.

llvm-svn: 285236
This commit is contained in:
Rui Ueyama 2016-10-26 20:27:38 +00:00
parent 5f7e6e6cfb
commit e784ee7348
1 changed files with 3 additions and 3 deletions

View File

@ -551,9 +551,9 @@ static std::string getLocation(SymbolBody &Sym, InputSectionBase<ELFT> &S,
SrcFile = Sym.File ? getFilename(Sym.File) : getFilename(File);
// Find a symbol at a given location.
DefinedRegular<ELFT> *Sym = getSymbolAt(&S, Offset);
if (Sym && Sym->Type == STT_FUNC) {
StringRef Func = getSymbolName(*File, *Sym);
DefinedRegular<ELFT> *Encl = getSymbolAt(&S, Offset);
if (Encl && Encl->Type == STT_FUNC) {
StringRef Func = getSymbolName(*File, *Encl);
return SrcFile + " (function " + maybeDemangle(Func) + ")";
}