mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Assorted minor improvements to the cleanup system.
This commit is contained in:
@@ -47,6 +47,8 @@ struct LValueWritebackCleanup : Cleanup {
|
||||
|
||||
void emit(SILGenFunction &SGF, CleanupLocation loc,
|
||||
ForUnwind_t forUnwind) override {
|
||||
FullExpr scope(SGF.Cleanups, loc);
|
||||
|
||||
// TODO: honor forUnwind!
|
||||
auto &evaluation = *SGF.FormalEvalContext.find(Depth);
|
||||
assert(evaluation.getKind() == FormalAccess::Exclusive);
|
||||
|
||||
Reference in New Issue
Block a user