Use empty() instead of size().
authorDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 17:52:43 +0000 (17:52 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 7 Jul 2008 17:52:43 +0000 (17:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53178 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/JIT/TargetSelect.cpp

index 1c204df9f28f57f38fe65830b6d4bf7f5478da96..0654f340b5f492830a5e293df99f75dd7bdaab00 100644 (file)
@@ -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)