We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9194a5 commit 84ea52eCopy full SHA for 84ea52e
lib/IRGen/GenReflection.cpp
@@ -391,7 +391,8 @@ getTypeRefImpl(IRGenModule &IGM,
391
// noncopyable, use a function to emit the type ref which will look for a
392
// signal from future runtimes whether they support noncopyable types before
393
// exposing their metadata to them.
394
- if (type->isNoncopyable()) {
+ if (sig.getGenericEnvironment()
395
+ ->mapTypeIntoContext(type)->isNoncopyable()) {
396
IGM.IRGen.noteUseOfTypeMetadata(type);
397
return getTypeRefByFunction(IGM, sig, type);
398
}
0 commit comments