mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Delete unnecessary artificial debug function argument debug info.
This commit is contained in:
@@ -1389,14 +1389,12 @@ static bool keepArgsOfPartialApplyAlive(PartialApplyInst *pai,
|
||||
|
||||
for (Operand *argOp : argsToHandle) {
|
||||
SILValue arg = argOp->get();
|
||||
int argIdx = argOp->getOperandNumber() - pai->getArgumentOperandNumber();
|
||||
SILDebugVariable dbgVar(/*Constant*/ true, argIdx);
|
||||
|
||||
SILValue tmp = arg;
|
||||
if (arg->getType().isAddress()) {
|
||||
// Move the value to a stack-allocated temporary.
|
||||
SILBuilderWithScope builder(pai, builderCtxt);
|
||||
tmp = builder.createAllocStack(pai->getLoc(), arg->getType(), dbgVar);
|
||||
tmp = builder.createAllocStack(pai->getLoc(), arg->getType());
|
||||
builder.createCopyAddr(pai->getLoc(), arg, tmp, IsTake_t::IsTake,
|
||||
IsInitialization_t::IsInitialization);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user