forked from OSchip/llvm-project
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:
parent
5afbc1cda7
commit
2112b2c07d
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue