diff options
author | Dan Gohman <gohman@apple.com> | 2008-07-07 17:52:43 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-07-07 17:52:43 +0000 |
commit | eccfb6a16583775f4b2e9bea9566f74934cf02c3 (patch) | |
tree | 0cfc2e2115cc9012eac3921c2db96e21361f35c2 /lib/ExecutionEngine/JIT/TargetSelect.cpp | |
parent | 6b345ee9b2833cf1b2f79dc16d06d4060bec36ef (diff) |
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/JIT/TargetSelect.cpp')
-rw-r--r-- | lib/ExecutionEngine/JIT/TargetSelect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/JIT/TargetSelect.cpp b/lib/ExecutionEngine/JIT/TargetSelect.cpp index 1c204df9f2..0654f340b5 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) |