Add the needed lld change for r264187 in llvm.

Sorry had this fixed in my check out but failed mention it in my
commit message for r264187.

llvm-svn: 264188
This commit is contained in:
Kevin Enderby 2016-03-23 20:37:23 +00:00
parent 5afbc1cda7
commit 2112b2c07d
1 changed files with 4 additions and 1 deletions

View File

@ -187,7 +187,10 @@ private:
continue;
// Returns true if it's a data symbol.
SymbolRef::Type type = sym.getType();
ErrorOr<SymbolRef::Type> typeOrErr = sym.getType();
if (typeOrErr.getError())
return false;
SymbolRef::Type type = *typeOrErr;
if (type == SymbolRef::ST_Data)
return true;
}