We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdfcc60 commit 49ce692Copy full SHA for 49ce692
include/swift/SILOptimizer/Utils/OwnershipOptUtils.h
@@ -196,6 +196,8 @@ class OwnershipReplaceSingleUseHelper {
196
OwnershipReplaceSingleUseHelper(OwnershipFixupContext &ctx, Operand *use,
197
SILValue newValue);
198
199
+ ~OwnershipReplaceSingleUseHelper() { if (ctx) ctx->clear(); }
200
+
201
/// Returns true if this helper was initialized into a valid state.
202
operator bool() const { return isValid(); }
203
bool isValid() const { return bool(ctx) && bool(use) && bool(newValue); }
0 commit comments