mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[func-sig-opts] Expose the ValueDecl argument of SILArgument's
constructor in SILBasicBlock::createArgument. By default the argument is nullptr so any place that currently does not need to pass in the ValueDecl will not need to be updated given the new behavior. Swift SVN r22379
This commit is contained in:
@@ -62,8 +62,8 @@ SILArgument *SILBasicBlock::replaceBBArg(unsigned i, SILType Ty, ValueDecl *D) {
|
||||
return NewArg;
|
||||
}
|
||||
|
||||
SILArgument *SILBasicBlock::createArgument(SILType Ty) {
|
||||
return new (getModule()) SILArgument(Ty, this);
|
||||
SILArgument *SILBasicBlock::createArgument(SILType Ty, const ValueDecl *D) {
|
||||
return new (getModule()) SILArgument(Ty, this, D);
|
||||
}
|
||||
|
||||
/// \brief Splits a basic block into two at the specified instruction.
|
||||
|
||||
Reference in New Issue
Block a user