summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commit3ada1e118b207ff7e9df055ec7a120047b1917e9 (patch)
treeef3a85450811f85e2b05423902c022323a128ef4 /llvm/lib
parenta5dd67f002d0ebcae6f67801a9681120bd86a7f5 (diff)
downloadbcm5719-llvm-3ada1e118b207ff7e9df055ec7a120047b1917e9.tar.gz
bcm5719-llvm-3ada1e118b207ff7e9df055ec7a120047b1917e9.zip
Clean up a use of std::distance.
llvm-svn: 52544
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index e917dc80b58..a6ef1b78dc6 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud