forked from OSchip/llvm-project
Simplify. readAssignment never returns a nullptr.
llvm-svn: 277090
This commit is contained in:
parent
84abc74f2c
commit
174e0a16f9
|
@ -779,10 +779,9 @@ void ScriptParser::readOutputSectionDescription(StringRef OutSec) {
|
|||
|
||||
void ScriptParser::readProvide(bool Hidden) {
|
||||
expect("(");
|
||||
if (SymbolAssignment *Assignment = readAssignment(next())) {
|
||||
Assignment->Provide = true;
|
||||
Assignment->Hidden = Hidden;
|
||||
}
|
||||
SymbolAssignment *Cmd = readAssignment(next());
|
||||
Cmd->Provide = true;
|
||||
Cmd->Hidden = Hidden;
|
||||
expect(")");
|
||||
expect(";");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue