]> granicus.if.org Git - clang/commitdiff
[ms-inline asm] If we don't know how to handle a token then assume this is not a
authorChad Rosier <mcrosier@apple.com>
Thu, 16 Aug 2012 22:30:02 +0000 (22:30 +0000)
committerChad Rosier <mcrosier@apple.com>
Thu, 16 Aug 2012 22:30:02 +0000 (22:30 +0000)
simple asm.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@162051 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmt.cpp

index 5493e343c6a262d9b0f6e6393449285b6e8326c9..4954a4c428755b531c656a5792eb7a81afca42cf 100644 (file)
@@ -2823,7 +2823,7 @@ static void patchMSAsmStrings(Sema &SemaRef, bool &IsSimple,
     // Check the operand(s).
     switch (AsmToks[i].getKind()) {
     default:
-      //llvm_unreachable("Unknown token.");
+      IsSimple = false;
       break;
     case tok::comma: Asm += ","; break;
     case tok::colon: Asm += ":"; break;