From da5701377613bce59a2db0d55365e226499968f5 Mon Sep 17 00:00:00 2001 From: Davide Italiano Date: Fri, 5 Feb 2016 22:10:42 +0000 Subject: [PATCH] [llvm-nm] Prefer empty() over size() == 0. Thanks to David Blaikie for pointing this out! llvm-svn: 259938 --- llvm/tools/llvm-nm/llvm-nm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/tools/llvm-nm/llvm-nm.cpp b/llvm/tools/llvm-nm/llvm-nm.cpp index 48de3dbfe5a9..dbc34b817503 100644 --- a/llvm/tools/llvm-nm/llvm-nm.cpp +++ b/llvm/tools/llvm-nm/llvm-nm.cpp @@ -1267,7 +1267,7 @@ int main(int argc, char **argv) { PrintAddress = false; if (OutputFormat == sysv || SizeSort) PrintSize = true; - if (InputFilenames.size() == 0) + if (InputFilenames.empty()) InputFilenames.push_back("a.out"); if (InputFilenames.size() > 1) MultipleFiles = true;