From 301f405ef34539e7f287513bd7df0cbcf4f71d07 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Tue, 29 Jan 2008 13:02:09 +0000 Subject: Use empty() instead of comparing size() with zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46514 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp') diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index bebbf83..b5f623d 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -257,7 +257,7 @@ GenericValue lle_X_floor(FunctionType *FT, const vector &Args) { // double drand48() GenericValue lle_X_drand48(FunctionType *FT, const vector &Args) { - assert(Args.size() == 0); + assert(Args.empty()); GenericValue GV; GV.DoubleVal = drand48(); return GV; @@ -265,7 +265,7 @@ GenericValue lle_X_drand48(FunctionType *FT, const vector &Args) { // long lrand48() GenericValue lle_X_lrand48(FunctionType *FT, const vector &Args) { - assert(Args.size() == 0); + assert(Args.empty()); GenericValue GV; GV.IntVal = APInt(32, lrand48()); return GV; @@ -282,7 +282,7 @@ GenericValue lle_X_srand48(FunctionType *FT, const vector &Args) { // int rand() GenericValue lle_X_rand(FunctionType *FT, const vector &Args) { - assert(Args.size() == 0); + assert(Args.empty()); GenericValue GV; GV.IntVal = APInt(32, rand()); return GV; -- cgit v1.1