]> granicus.if.org Git - clang/commitdiff
Add a slightly better hack for microsoft style inline asm,
authorChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2010 16:00:12 +0000 (16:00 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 17 Aug 2010 16:00:12 +0000 (16:00 +0000)
patch by Per Linden!

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

lib/Parse/ParseStmt.cpp

index a83aff182d307792715b2b59efc21de2d23d4bfb..ccd56e98aa11e3925175d5abe5fbbe27b36de92c 100644 (file)
@@ -1234,9 +1234,9 @@ Parser::OwningStmtResult Parser::FuzzyParseMicrosoftAsmStatement() {
   }
   Token t;
   t.setKind(tok::string_literal);
-  t.setLiteralData("\"FIXME: not done\"");
+  t.setLiteralData("\"/*FIXME: not done*/\"");
   t.clearFlag(Token::NeedsCleaning);
-  t.setLength(17);
+  t.setLength(21);
   OwningExprResult AsmString(Actions.ActOnStringLiteral(&t, 1));
   ExprVector Constraints(Actions);
   ExprVector Exprs(Actions);