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:
Joe Groff
2023-02-23 08:28:18 -08:00
parent f20eaac5be
commit a572c3f491
31 changed files with 292 additions and 260 deletions

View File

@@ -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;