<div dir="ltr">parseToken emit an error if it doesn't parse the expected token. <div><br></div><div>-Nirav</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 5, 2016 at 12:21 AM, Renato Golin <span dir="ltr"><<a href="mailto:renato.golin@linaro.org" target="_blank">renato.golin@linaro.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">rengolin added a comment.<br>
<br>
Small comments, otherwise, loos good.<br>
<br>
<br>
<br>
================<br>
Comment at: lib/Target/AArch64/AsmParser/<wbr>AArch64AsmParser.cpp:4163<br>
+<br>
+ if (parseToken(AsmToken::<wbr>EndOfStatement))<br>
+ return true;<br>
----------------<br>
Shouldn't this be emitting an error?<br>
<br>
<br>
================<br>
Comment at: lib/Target/AArch64/AsmParser/<wbr>AArch64AsmParser.cpp:4217<br>
<br>
+ if (parseToken(AsmToken::<wbr>EndOfStatement))<br>
+ return true;<br>
----------------<br>
here too<br>
<br>
<br>
<a href="https://reviews.llvm.org/D26309" rel="noreferrer" target="_blank">https://reviews.llvm.org/<wbr>D26309</a><br>
<br>
<br>
<br>
</blockquote></div><br></div>