aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Chisnall <csdavec@swan.ac.uk>2012-02-01 19:16:56 +0000
committerDavid Chisnall <csdavec@swan.ac.uk>2012-02-01 19:16:56 +0000
commitdccaa239ec125926a9c1fb5f328bce349e41637b (patch)
tree0751b14f6f22fb78a663fdf763c06b0f84ab730d
parent84aac9acc7a73360a7553c46f8da72773adbdd17 (diff)
size() == 0 -> empty().
Spotted by rjmcall. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149526 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/CodeGen/CGObjCGNU.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGObjCGNU.cpp b/lib/CodeGen/CGObjCGNU.cpp
index 4911e0e297..2a3c36ce4f 100644
--- a/lib/CodeGen/CGObjCGNU.cpp
+++ b/lib/CodeGen/CGObjCGNU.cpp
@@ -2363,7 +2363,7 @@ llvm::Function *CGObjCGNU::ModuleInitFunction() {
llvm::Value *Register = CGM.CreateRuntimeFunction(FT, "__objc_exec_class");
Builder.CreateCall(Register, Module);
- if (0 != ClassAliases.size()) {
+ if (!ClassAliases.empty()) {
llvm::Type *ArgTypes[2] = {PtrTy, PtrToInt8Ty};
llvm::FunctionType *RegisterAliasTy =
llvm::FunctionType::get(Builder.getVoidTy(),