diff options
author | Dan Gohman <djg@cray.com> | 2008-01-29 13:02:09 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2008-01-29 13:02:09 +0000 |
commit | 301f405ef34539e7f287513bd7df0cbcf4f71d07 (patch) | |
tree | 75e904f611c8a27f2ed75866eb2cabe4e9468141 /lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | |
parent | e490176fcdd23a72fffaafe08c96c00dab7610a3 (diff) | |
download | external_llvm-301f405ef34539e7f287513bd7df0cbcf4f71d07.zip external_llvm-301f405ef34539e7f287513bd7df0cbcf4f71d07.tar.gz external_llvm-301f405ef34539e7f287513bd7df0cbcf4f71d07.tar.bz2 |
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
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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<GenericValue> &Args) { // double drand48() GenericValue lle_X_drand48(FunctionType *FT, const vector<GenericValue> &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<GenericValue> &Args) { // long lrand48() GenericValue lle_X_lrand48(FunctionType *FT, const vector<GenericValue> &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<GenericValue> &Args) { // int rand() GenericValue lle_X_rand(FunctionType *FT, const vector<GenericValue> &Args) { - assert(Args.size() == 0); + assert(Args.empty()); GenericValue GV; GV.IntVal = APInt(32, rand()); return GV; |