[Assembler] Allow non-fatal errors after parsing
[oota-llvm.git] / lib / MC / MCParser / AsmParser.cpp
index dd0e6bde9d89a476c41d64cdd7b7d52d4748cb0d..8e8be8e52f6394b30f35374a38588397108e0f0c 100644 (file)
@@ -703,7 +703,7 @@ bool AsmParser::Run(bool NoInitialTextSection, bool NoFinalize) {
   if (!HadError && !NoFinalize)
     Out.Finish();
 
-  return HadError;
+  return HadError || getContext().hadError();
 }
 
 void AsmParser::checkForValidSection() {