mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[semantic-sil] Add a new pass that dumps out the ownership of all SILValue in a function and performs some minor checks upon them.
rdar://29671437
This commit is contained in:
@@ -341,7 +341,8 @@ ValueOwnershipKindVisitor::visitSILUndef(SILUndef *Arg) {
|
||||
|
||||
Optional<ValueOwnershipKind>
|
||||
ValueOwnershipKindVisitor::visitPHISILArgument(SILArgument *Arg) {
|
||||
llvm_unreachable("unimplemented");
|
||||
// For now just return undef.
|
||||
return ValueOwnershipKind::Undef;
|
||||
}
|
||||
|
||||
Optional<ValueOwnershipKind>
|
||||
|
||||
Reference in New Issue
Block a user