<div dir="ltr">Test case?</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Dec 14, 2013 at 10:05 PM, Saleem Abdulrasool <span dir="ltr"><<a href="mailto:compnerd@compnerd.org" target="_blank">compnerd@compnerd.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi t.p.northover,<br>
<br>
If the target specific parser handles the directive and there is an error, do<br>
not try to fall back to the common directive handling.<br>
<br>
<a href="http://llvm-reviews.chandlerc.com/D2410" target="_blank">http://llvm-reviews.chandlerc.com/D2410</a><br>
<br>
Files:<br>
  lib/MC/MCParser/AsmParser.cpp<br>
<br>
Index: lib/MC/MCParser/AsmParser.cpp<br>
===================================================================<br>
--- lib/MC/MCParser/AsmParser.cpp<br>
+++ lib/MC/MCParser/AsmParser.cpp<br>
@@ -1327,6 +1327,9 @@<br>
     if (!getTargetParser().ParseDirective(ID))<br>
       return false;<br>
<br>
+    if (HadError)<br>
+      return false;<br>
+<br>
     // Next, check the extention directive map to see if any extension has<br>
     // registered itself to parse this directive.<br>
     std::pair<MCAsmParserExtension *, DirectiveHandler> Handler =<br>
<br>_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
<br></blockquote></div><br></div>