[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)
llvm-svn: 166352

llvm/lib/MC/MCParser/AsmParser.cpp

index 690684f..dc21c92 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;
   }