aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-10-19 23:15:00 +0000
committerChad Rosier <mcrosier@apple.com>2012-10-19 23:15:00 +0000
commit13090f70fc216ad94e8bc10891bca0087f3eee05 (patch)
tree7e2a86af7620480b33909739547f7818794aaf6f /lib/MC
parent5dbe64e2bc2e4b96654703e85f909536df7ddb84 (diff)
downloadexternal_llvm-13090f70fc216ad94e8bc10891bca0087f3eee05.zip
external_llvm-13090f70fc216ad94e8bc10891bca0087f3eee05.tar.gz
external_llvm-13090f70fc216ad94e8bc10891bca0087f3eee05.tar.bz2
[ms-inline asm] Continue parsing even when we're in an ignore block.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@166352 91177308-0d34-0410-b5e6-96231b3b80d8
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 690684f..dc21c92 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;
}