mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Remove the transparent bit from apply instructions.
We no longer need or use it since we can always refer to the same bit on the applied function when deciding whether to inline during mandatory inlining. Resolves rdar://problem/19478366. Swift SVN r26534
This commit is contained in:
@@ -213,20 +213,19 @@ public:
|
||||
SILType SubstFnTy,
|
||||
SILType Result,
|
||||
ArrayRef<Substitution> Subs,
|
||||
ArrayRef<SILValue> Args,
|
||||
bool Transparent = false) {
|
||||
ArrayRef<SILValue> Args) {
|
||||
return insert(ApplyInst::create(Loc, Fn, SubstFnTy, Result,
|
||||
Subs, Args, Transparent, F));
|
||||
Subs, Args, F));
|
||||
}
|
||||
|
||||
ApplyInst *createApply(SILLocation Loc, SILValue Fn, ArrayRef<SILValue> Args,
|
||||
bool Transparent = false) {
|
||||
ApplyInst *createApply(SILLocation Loc, SILValue Fn,
|
||||
ArrayRef<SILValue> Args) {
|
||||
auto FnTy = Fn.getType();
|
||||
return createApply(Loc, Fn, FnTy,
|
||||
FnTy.castTo<SILFunctionType>()
|
||||
->getResult()
|
||||
.getSILType(),
|
||||
ArrayRef<Substitution>(), Args, Transparent);
|
||||
ArrayRef<Substitution>(), Args);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user