Fix bug in .gpword directive parsing.
llvm-svn: 194570
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
index 7b93d75..89e2b3b 100644
--- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
+++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp
@@ -2379,13 +2379,11 @@
// method to evaluate the expression.
if (getParser().parseExpression(Value))
return true;
-
getParser().getStreamer().EmitGPRel32Value(Value);
- Parser.Lex(); // Eat last token.
- if (getLexer().is(AsmToken::EndOfStatement))
+ if (getLexer().isNot(AsmToken::EndOfStatement))
return Error(getLexer().getLoc(), "unexpected token in directive");
-
+ Parser.Lex(); // Eat EndOfStatement token.
return false;
}