diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-12 05:25:44 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2014-01-12 05:25:44 +0000 |
commit | bdae4b874319daa7080f803b9c5aca71f6a03b0c (patch) | |
tree | 12db4e423e0efe4408e95757302891729f520dc3 /llvm/lib | |
parent | 8d7f5066bf22d01cf5bafe1027a2af4f5e5cd951 (diff) | |
download | bcm5719-llvm-bdae4b874319daa7080f803b9c5aca71f6a03b0c.tar.gz bcm5719-llvm-bdae4b874319daa7080f803b9c5aca71f6a03b0c.zip |
ARM IAS: fix diagnostics of improper qualification
An improper qualifier would result in a superfluous error due to the parser not
consuming the remainder of the statement. Simply consume the remainder of the
statement to avoid the error.
llvm-svn: 199035
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp index b1ac198c6c2..b8890a37df9 100644 --- a/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp +++ b/llvm/lib/Target/ARM/AsmParser/ARMAsmParser.cpp @@ -5325,6 +5325,7 @@ bool ARMAsmParser::ParseInstruction(ParseInstructionInfo &Info, StringRef Name, // For for ARM mode generate an error if the .n qualifier is used. if (ExtraToken == ".n" && !isThumb()) { SMLoc Loc = SMLoc::getFromPointer(NameLoc.getPointer() + Start); + Parser.eatToEndOfStatement(); return Error(Loc, "instruction with .n (narrow) qualifier not allowed in " "arm mode"); } |