llvm-mc: Fix llvm-mc -as-lex.

llvm-svn: 108644
This commit is contained in:
Daniel Dunbar 2010-07-18 18:31:28 +00:00
parent 9e73cae25e
commit 7a85f9cf4d
1 changed files with 2 additions and 2 deletions

View File

@ -165,9 +165,9 @@ static int AsLexInput(const char *ProgName) {
assert(MAI && "Unable to create target asm info!");
AsmLexer Lexer(*MAI);
Lexer.setBuffer(SrcMgr.getMemoryBuffer(0));
bool Error = false;
while (Lexer.Lex().isNot(AsmToken::Eof)) {
switch (Lexer.getKind()) {
default: