Skip to content

Commit ec90e4a

Browse files
authored
Merge pull request swiftlang#7702 from aschwaighofer/silence_irgen_warning
2 parents c88165c + fecec3c commit ec90e4a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/IRGen/GenFunc.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -1337,10 +1337,10 @@ void irgen::emitFunctionPartialApplication(IRGenFunction &IGF,
13371337
// last parameter that fits into a register as swiftself.
13381338
// We should get this optimization back using the @convention(closure) whose
13391339
// box argument should just be swift self.
1340-
if (false &&
1340+
if (/* DISABLES CODE */ (false) &&
13411341
!origType->isPolymorphic() &&
1342-
hasSingleSwiftRefcountedContext == Yes
1343-
&& outType->getCalleeConvention() == *singleRefcountedConvention) {
1342+
hasSingleSwiftRefcountedContext == Yes &&
1343+
outType->getCalleeConvention() == *singleRefcountedConvention) {
13441344
assert(args.size() == 1);
13451345
fnPtr = IGF.Builder.CreateBitCast(fnPtr, IGF.IGM.Int8PtrTy);
13461346
out.add(fnPtr);

0 commit comments

Comments
 (0)