projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[Assembler] Allow non-fatal errors after parsing
[oota-llvm.git]
/
lib
/
MC
/
MCParser
/
AsmParser.cpp
diff --git
a/lib/MC/MCParser/AsmParser.cpp
b/lib/MC/MCParser/AsmParser.cpp
index dd0e6bde9d89a476c41d64cdd7b7d52d4748cb0d..8e8be8e52f6394b30f35374a38588397108e0f0c 100644
(file)
--- a/
lib/MC/MCParser/AsmParser.cpp
+++ b/
lib/MC/MCParser/AsmParser.cpp
@@
-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() {