aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@apple.com>2012-08-08 21:42:11 +0000
committerChad Rosier <mcrosier@apple.com>2012-08-08 21:42:11 +0000
commit77c7b0a7d04bf28b6fe15d21dc9a5b5d366347cc (patch)
tree1feb6ab3fc58cecc70708e57f45f5ceb9f4e47fb /lib/Sema/SemaStmt.cpp
parent8a64f88aa9c97f031727ce145be1a76fd52470a6 (diff)
[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
Diffstat (limited to 'lib/Sema/SemaStmt.cpp')
-rw-r--r--lib/Sema/SemaStmt.cpp4
1 files 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<Token> AsmToks,
ArrayRef<unsigned> LineEnds) {
- if (!AsmToks.size())
+ if (AsmToks.empty())
return "";
SmallString<512> Asm;