[ms-inline asm] Continue parsing even when we're in an ignore block.
authorChad Rosier <mcrosier@apple.com>
Fri, 19 Oct 2012 23:15:00 +0000 (23:15 +0000)
committerChad Rosier <mcrosier@apple.com>
Fri, 19 Oct 2012 23:15:00 +0000 (23:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166352 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCParser/AsmParser.cpp

index 690684f50ae28752f011211b1bcaa802d6db5757..dc21c928edf41e279f9f2e72c6d208b694a71b57 100644 (file)
@@ -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;
   }