mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
IRGen: Rename internal 'POD' references to 'TriviallyDestroyable'.
Noncopyable types aren't really "POD", but the bit is still useful to track whether a noncopyable type has a no-op destroy operation, so rename the existing bit to be more specific within IRGen's implementation. Don't rename it in the runtime or Builtin names yet, since doing so will require a naming transition for compatibility.
This commit is contained in:
@@ -365,7 +365,7 @@ getWitnessTableForComputedComponent(IRGenModule &IGM,
|
||||
? genericEnv->mapTypeIntoContext(IGM.getSILModule(), component.LoweredType)
|
||||
: component.LoweredType;
|
||||
auto &ti = IGM.getTypeInfo(ty);
|
||||
isTrivial &= ti.isPOD(ResilienceExpansion::Minimal);
|
||||
isTrivial &= ti.isTriviallyDestroyable(ResilienceExpansion::Minimal);
|
||||
}
|
||||
|
||||
llvm::Constant *destroy = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user