mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[ownership] Change SILUndef to return Any ownership for trivial values and owned for non-trivial values.
This is in preparation for verifying that when ownership verification is enabled that only enums and trivial values can have any ownership. I am doing this in preparation for eliminating ValueOwnershipKind::Trivial. rdar://46294760
This commit is contained in:
@@ -51,12 +51,15 @@ class SILSSAUpdater {
|
||||
// If not null updated with inserted 'phi' nodes (SILArgument).
|
||||
SmallVectorImpl<SILPhiArgument *> *InsertedPHIs;
|
||||
|
||||
SILModule &M;
|
||||
|
||||
// Not copyable.
|
||||
void operator=(const SILSSAUpdater &) = delete;
|
||||
SILSSAUpdater(const SILSSAUpdater &) = delete;
|
||||
|
||||
public:
|
||||
explicit SILSSAUpdater(
|
||||
SILModule &M,
|
||||
SmallVectorImpl<SILPhiArgument *> *InsertedPHIs = nullptr);
|
||||
~SILSSAUpdater();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user