Skip to content

Commit e44e5b7

Browse files
committed
handle detecting generic code better
1 parent b26e2fd commit e44e5b7

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->getGenericEnvironment()) {
696+
if (Target->isGeneric()) {
697697
// swift.type **
698698
llvm::Value *substitutionBuffer =
699699
IGF.Builder.CreateBitCast(substitutions, IGM.TypeMetadataPtrPtrTy);

0 commit comments

Comments
 (0)