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
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 @@
// 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 @@
// 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 @@
// 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;