Skip to content

Commit 84ea52e

Browse files
committed
[IRGen] update isNoncopyable query
resolves rdar://117594962
1 parent a9194a5 commit 84ea52e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/IRGen/GenReflection.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -391,7 +391,8 @@ getTypeRefImpl(IRGenModule &IGM,
391391
// noncopyable, use a function to emit the type ref which will look for a
392392
// signal from future runtimes whether they support noncopyable types before
393393
// exposing their metadata to them.
394-
if (type->isNoncopyable()) {
394+
if (sig.getGenericEnvironment()
395+
->mapTypeIntoContext(type)->isNoncopyable()) {
395396
IGM.IRGen.noteUseOfTypeMetadata(type);
396397
return getTypeRefByFunction(IGM, sig, type);
397398
}

0 commit comments

Comments
 (0)