summaryrefslogtreecommitdiff
path: root/lib/MC
diff options
context:
space:
mode:
Diffstat (limited to 'lib/MC')
-rw-r--r--lib/MC/MCParser/AsmParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/MC/MCParser/AsmParser.cpp b/lib/MC/MCParser/AsmParser.cpp
index 690684f50a..dc21c928ed 100644
--- a/lib/MC/MCParser/AsmParser.cpp
+++ b/lib/MC/MCParser/AsmParser.cpp
@@ -1138,7 +1138,7 @@ bool AsmParser::ParseStatement() {
return ParseDirectiveEndIf(IDLoc);
// If we are in a ".if 0" block, ignore this statement.
- if (TheCondState.Ignore) {
+ if (TheCondState.Ignore && !ParsingInlineAsm) {
EatToEndOfStatement();
return false;
}