From 77c7b0a7d04bf28b6fe15d21dc9a5b5d366347cc Mon Sep 17 00:00:00 2001 From: Chad Rosier Date: Wed, 8 Aug 2012 21:42:11 +0000 Subject: [PATCH] [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 --- lib/Sema/SemaStmt.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Sema/SemaStmt.cpp b/lib/Sema/SemaStmt.cpp index 8ba28b1005..7a37c1c786 100644 --- a/lib/Sema/SemaStmt.cpp +++ b/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 AsmToks, ArrayRef LineEnds) { - if (!AsmToks.size()) + if (AsmToks.empty()) return ""; SmallString<512> Asm; -- 2.40.0