aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-06-20 17:11:32 +0000
committerDan Gohman <gohman@apple.com>2008-06-20 17:11:32 +0000
commit9614fcc640eb628cc5dfddb277ebae9f6cb61014 (patch)
treefe7cb2fec0cc9722b1ae8ca4b7ae1b15fec7dea3 /lib/Transforms/Utils
parent60ea268645a3b082d4ccd86c113a1a530fc2b9f6 (diff)
downloadexternal_llvm-9614fcc640eb628cc5dfddb277ebae9f6cb61014.zip
external_llvm-9614fcc640eb628cc5dfddb277ebae9f6cb61014.tar.gz
external_llvm-9614fcc640eb628cc5dfddb277ebae9f6cb61014.tar.bz2
Clean up a use of std::distance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52544 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/InlineFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/InlineFunction.cpp b/lib/Transforms/Utils/InlineFunction.cpp
index e917dc8..a6ef1b7 100644
--- a/lib/Transforms/Utils/InlineFunction.cpp
+++ b/lib/Transforms/Utils/InlineFunction.cpp
@@ -229,8 +229,7 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
{ // Scope to destroy ValueMap after cloning.
DenseMap<const Value*, Value*> ValueMap;
- assert(std::distance(CalledFunc->arg_begin(), CalledFunc->arg_end()) ==
- std::distance(CS.arg_begin(), CS.arg_end()) &&
+ assert(CalledFunc->arg_size() == CS.arg_size() &&
"No varargs calls can be inlined!");
// Calculate the vector of arguments to pass into the function cloner, which