]> granicus.if.org Git - clang/commitdiff
[ms-inline asm] Use more idiomatic logic. Thanks, Bill.
authorChad Rosier <mcrosier@apple.com>
Wed, 8 Aug 2012 21:42:11 +0000 (21:42 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 8 Aug 2012 21:42:11 +0000 (21:42 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161526 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaStmt.cpp

index 8ba28b10059b234abfe00786d9fef4c42d9b7909..7a37c1c7862d9809393a1d701681e2f407b00d84 100644 (file)
@@ -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;