MC: Remove errant EatToEndOfStatement() in asm parser.

The caller is already responsible for eating any additional input on the
line. Putting an additional EatToEndOfStatement() in ParseStatement()
causes an entire extra statement to be consumed when treating warnings
as errors. For example, test/MC/macros.s will assert() because the
.endmacro directive is missed as a result.

rdar://11355843

llvm-svn: 155925
This commit is contained in:
Jim Grosbach 2012-05-01 18:38:24 +00:00
parent 87622b8b84
commit a0c53f147a
1 changed files with 1 additions and 3 deletions

View File

@ -1238,9 +1238,7 @@ bool AsmParser::ParseStatement() {
if (!getTargetParser().ParseDirective(ID))
return false;
bool retval = Warning(IDLoc, "ignoring directive for now");
EatToEndOfStatement();
return retval;
return Warning(IDLoc, "ignoring directive for now");
}
CheckForValidSection();