Simplify. readAssignment never returns a nullptr.

llvm-svn: 277090
This commit is contained in:
Rui Ueyama 2016-07-29 00:29:25 +00:00
parent 84abc74f2c
commit 174e0a16f9
1 changed files with 3 additions and 4 deletions

View File

@ -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(";");
}