[cfe-commits] r161522 - /cfe/trunk/lib/Sema/SemaStmt.cpp
Chad Rosier
mcrosier at apple.com
Wed Aug 8 14:08:20 PDT 2012
Author: mcrosier
Date: Wed Aug 8 16:08:20 2012
New Revision: 161522
URL: http://llvm.org/viewvc/llvm-project?rev=161522&view=rev
Log:
[ms-inline asm] Make sure IsSimple is correctly handled.
Modified:
cfe/trunk/lib/Sema/SemaStmt.cpp
Modified: cfe/trunk/lib/Sema/SemaStmt.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaStmt.cpp?rev=161522&r1=161521&r2=161522&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaStmt.cpp (original)
+++ cfe/trunk/lib/Sema/SemaStmt.cpp Wed Aug 8 16:08:20 2012
@@ -2786,6 +2786,9 @@
SourceLocation AsmLoc,
ArrayRef<Token> AsmToks,
const TargetInfo &TI) {
+ // Assume simple asm stmt until we parse a non-register identifer.
+ IsSimple = true;
+
if (!AsmToks.size())
return "";
@@ -2793,9 +2796,6 @@
IdentifierInfo *II = AsmToks[0].getIdentifierInfo();
Res = II->getName().str();
- // Assume simple asm stmt until we parse a non-register identifer.
- IsSimple = true;
-
// Check the operands.
for (unsigned i = 1, e = AsmToks.size(); i != e; ++i) {
if (needSpaceAsmToken(AsmToks[i]))
More information about the cfe-commits
mailing list