swift
762cdc4c - Fix PredictableDeadAllocationElimination ownership for empty structs

Commit
1 year ago
Fix PredictableDeadAllocationElimination ownership for empty structs Preserve ownership for empty non-trivial structs. This currently applies to ~Escapable structs. People often use empty structs to investigate language behavior. They should behave just like a struct that wraps a pointer. Previously, this would crash later during OSSA lifetime completion: Assertion failed: (isa<UnreachableInst>(block->getTerminator())), function computeRegion, file OSSALifetimeCompletion.cpp.
Author
Committer
Parents
Loading