projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60ea268
)
Clean up a use of std::distance.
author
Dan Gohman
<gohman@apple.com>
Fri, 20 Jun 2008 17:11:32 +0000
(17:11 +0000)
committer
Dan Gohman
<gohman@apple.com>
Fri, 20 Jun 2008 17:11:32 +0000
(17:11 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52544
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Utils/InlineFunction.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Utils/InlineFunction.cpp
b/lib/Transforms/Utils/InlineFunction.cpp
index e917dc80b58707c73236ab55eb0fe0e0db918c00..a6ef1b78dc6dd583b7369e08f5b981f1e4cdcc8b 100644
(file)
--- 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