commit | eccfb6a16583775f4b2e9bea9566f74934cf02c3 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Mon Jul 07 17:52:43 2008 +0000 |
committer | Dan Gohman <gohman@apple.com> | Mon Jul 07 17:52:43 2008 +0000 |
tree | 0cfc2e2115cc9012eac3921c2db96e21361f35c2 | |
parent | 6b345ee9b2833cf1b2f79dc16d06d4060bec36ef [diff] [blame] |
Use empty() instead of size(). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53178 91177308-0d34-0410-b5e6-96231b3b80d8
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 @@ // 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)