Skip to content

Commit fb4bcfe

Browse files
authored
Remove change to isGeneric on 5.10
The semantics we need here are fine enough with the previous code; The `isGeneric` method does not exist on 5.10 so let's keep using what worked well before already.
1 parent 8657bcf commit fb4bcfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenDistributed.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ void DistributedAccessor::emit() {
693693
}
694694

695695
// Add all of the substitutions to the explosion
696-
if (Target->isGeneric()) {
696+
if (auto *genericEnvironment = Target->getGenericEnvironment()) {
697697
// swift.type **
698698
llvm::Value *substitutionBuffer =
699699
IGF.Builder.CreateBitCast(substitutions, IGM.TypeMetadataPtrPtrTy);

0 commit comments

Comments
 (0)