mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
Clean up a use of std::distance.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52544 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
60ea268645
commit
9614fcc640
@ -229,8 +229,7 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
|
|||||||
{ // Scope to destroy ValueMap after cloning.
|
{ // Scope to destroy ValueMap after cloning.
|
||||||
DenseMap<const Value*, Value*> ValueMap;
|
DenseMap<const Value*, Value*> ValueMap;
|
||||||
|
|
||||||
assert(std::distance(CalledFunc->arg_begin(), CalledFunc->arg_end()) ==
|
assert(CalledFunc->arg_size() == CS.arg_size() &&
|
||||||
std::distance(CS.arg_begin(), CS.arg_end()) &&
|
|
||||||
"No varargs calls can be inlined!");
|
"No varargs calls can be inlined!");
|
||||||
|
|
||||||
// Calculate the vector of arguments to pass into the function cloner, which
|
// Calculate the vector of arguments to pass into the function cloner, which
|
||||||
|
Loading…
x
Reference in New Issue
Block a user