Explorar o código

[ms-inline asm] Use more idiomatic logic. Thanks, Bill.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161526 91177308-0d34-0410-b5e6-96231b3b80d8
Chad Rosier %!s(int64=13) %!d(string=hai) anos
pai
achega
77c7b0a7d0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      lib/Sema/SemaStmt.cpp

+ 2 - 2
lib/Sema/SemaStmt.cpp

@@ -2789,7 +2789,7 @@ static std::string PatchMSAsmString(Sema &SemaRef, bool &IsSimple,
   // Assume simple asm stmt until we parse a non-register identifer.
   IsSimple = true;
 
-  if (!AsmToks.size())
+  if (AsmToks.empty())
     return "";
 
   std::string Res;
@@ -2844,7 +2844,7 @@ static std::string PatchMSAsmString(Sema &SemaRef, bool &IsSimple,
 static std::string buildMSAsmString(Sema &SemaRef,
                                     ArrayRef<Token> AsmToks,
                                     ArrayRef<unsigned> LineEnds) {
-  if (!AsmToks.size())
+  if (AsmToks.empty())
     return "";
 
   SmallString<512> Asm;