summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-01-29 13:02:09 +0000
committerDan Gohman <gohman@apple.com>2008-01-29 13:02:09 +0000
commit70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6 (patch)
treef1c41dbbb10c04adfbf4b213ab2c1965dee32d82 /llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parentcf8827a282e6e133d7a153673b1c05c58817d604 (diff)
downloadbcm5719-llvm-70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6.tar.gz
bcm5719-llvm-70de4cb1cd4d8ec82260bd861aa91f639cbc5eb6.zip
Use empty() instead of comparing size() with zero.
llvm-svn: 46514
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index bebbf8364ee..b5f623d49be 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud