aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-07 17:52:43 +0000
committerDan Gohman <gohman@apple.com>2008-07-07 17:52:43 +0000
commiteccfb6a16583775f4b2e9bea9566f74934cf02c3 (patch)
tree0cfc2e2115cc9012eac3921c2db96e21361f35c2 /lib/ExecutionEngine
parent6b345ee9b2833cf1b2f79dc16d06d4060bec36ef (diff)
downloadexternal_llvm-eccfb6a16583775f4b2e9bea9566f74934cf02c3.zip
external_llvm-eccfb6a16583775f4b2e9bea9566f74934cf02c3.tar.gz
external_llvm-eccfb6a16583775f4b2e9bea9566f74934cf02c3.tar.bz2
Use empty() instead of size().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine')
-rw-r--r--lib/ExecutionEngine/JIT/TargetSelect.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/TargetSelect.cpp b/lib/ExecutionEngine/JIT/TargetSelect.cpp
index 1c204df..0654f34 100644
--- a/lib/ExecutionEngine/JIT/TargetSelect.cpp
+++ b/lib/ExecutionEngine/JIT/TargetSelect.cpp
@@ -59,7 +59,7 @@ ExecutionEngine *JIT::createJIT(ModuleProvider *MP, std::string *ErrorStr,
// Package up features to be passed to target/subtarget
std::string FeaturesStr;
- if (MCPU.size() || MAttrs.size()) {
+ if (!MCPU.empty() || !MAttrs.empty()) {
SubtargetFeatures Features;
Features.setCPU(MCPU);
for (unsigned i = 0; i != MAttrs.size(); ++i)