From 6ee521c7eb8b58b5b1faf471bf03da434440bcf0 Mon Sep 17 00:00:00 2001 From: Alexander Kornienko Date: Fri, 23 Jan 2015 15:36:10 +0000 Subject: Replace size() calls on containers with empty() calls where appropriate. NFC MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit http://reviews.llvm.org/D7090 Patch by Gábor Horváth! llvm-svn: 226914 --- clang/lib/CodeGen/CGObjCGNU.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGObjCGNU.cpp') diff --git a/clang/lib/CodeGen/CGObjCGNU.cpp b/clang/lib/CodeGen/CGObjCGNU.cpp index c0dc3b8002d..da952601233 100644 --- a/clang/lib/CodeGen/CGObjCGNU.cpp +++ b/clang/lib/CodeGen/CGObjCGNU.cpp @@ -2366,7 +2366,7 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() { std::vector Elements; llvm::Constant *Statics = NULLPtr; // Generate statics list: - if (ConstantStrings.size()) { + if (!ConstantStrings.empty()) { llvm::ArrayType *StaticsArrayTy = llvm::ArrayType::get(PtrToInt8Ty, ConstantStrings.size() + 1); ConstantStrings.push_back(NULLPtr); -- cgit v1.2.3