[PATCH] D15115: [Microsoft][C++] Clang doesn't support a use of "this" pointer inside inline asm
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 7 11:24:02 PST 2015
rnk added inline comments.
================
Comment at: lib/Parse/ParseExprCXX.cpp:2567-2569
@@ -2566,4 +2566,5 @@
}
-
+ if (Tok.is(tok::kw_this))
+ return true;
Diag(Tok, diag::err_expected_unqualified_id)
<< getLangOpts().CPlusPlus;
----------------
I think you want to teach ParseMSAsmIdentifier to check for kw_this before calling ParseUnqualifiedId. That would make it consistent with the primary-expression production in the comments above ParseCastExpression.
http://reviews.llvm.org/D15115
More information about the llvm-commits
mailing list