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 0dd8974 commit 72d13a3Copy full SHA for 72d13a3
lib/IRGen/Outlining.cpp
@@ -329,6 +329,10 @@ llvm::Constant *IRGenModule::getOrCreateOutlinedCopyAddrHelperFunction(
329
330
void TypeInfo::callOutlinedDestroy(IRGenFunction &IGF,
331
Address addr, SILType T) const {
332
+ // Short-cut destruction of trivial values.
333
+ if (IGF.IGM.getTypeLowering(T).isTrivial())
334
+ return;
335
+
336
if (!IGF.IGM.getOptions().UseTypeLayoutValueHandling) {
337
OutliningMetadataCollector collector(IGF);
338
if (T.hasArchetype()) {
0 commit comments