[llvm-commits] [llvm] r52544 - /llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Dan Gohman
gohman at apple.com
Fri Jun 20 10:11:32 PDT 2008
Author: djg
Date: Fri Jun 20 12:11:32 2008
New Revision: 52544
URL: http://llvm.org/viewvc/llvm-project?rev=52544&view=rev
Log:
Clean up a use of std::distance.
Modified:
llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
Modified: llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp?rev=52544&r1=52543&r2=52544&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/InlineFunction.cpp Fri Jun 20 12:11:32 2008
@@ -229,8 +229,7 @@
{ // 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
More information about the llvm-commits
mailing list