aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Sema/SemaStmt.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp
index 2ec9d241a3..8ba28b1005 100644
--- a/lib/Sema/SemaStmt.cpp
+++ b/lib/Sema/SemaStmt.cpp
@@ -2786,6 +2786,9 @@ static std::string PatchMSAsmString(Sema &SemaRef, bool &IsSimple,
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 @@ static std::string PatchMSAsmString(Sema &SemaRef, bool &IsSimple,
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]))