From f6c7c0d0bcf901b21b569d80c4e236b70fabe7e8 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Thu, 31 Dec 2020 14:02:58 -0800 Subject: [PATCH] [ownership] bridge_object_to_word is a bitwise escape not an instantaneous use. --- lib/SIL/IR/OperandOwnership.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/SIL/IR/OperandOwnership.cpp b/lib/SIL/IR/OperandOwnership.cpp index 2de6bca5de5..cec3757bcfc 100644 --- a/lib/SIL/IR/OperandOwnership.cpp +++ b/lib/SIL/IR/OperandOwnership.cpp @@ -186,7 +186,6 @@ OPERAND_OWNERSHIP(InstantaneousUse, ValueMetatype) OPERAND_OWNERSHIP(InstantaneousUse, IsEscapingClosure) OPERAND_OWNERSHIP(InstantaneousUse, ClassMethod) OPERAND_OWNERSHIP(InstantaneousUse, SuperMethod) -OPERAND_OWNERSHIP(InstantaneousUse, BridgeObjectToWord) OPERAND_OWNERSHIP(InstantaneousUse, ClassifyBridgeObject) OPERAND_OWNERSHIP(InstantaneousUse, SetDeallocating) #define ALWAYS_OR_SOMETIMES_LOADABLE_CHECKED_REF_STORAGE(Name, ...) \ @@ -229,6 +228,7 @@ OPERAND_OWNERSHIP(BitwiseEscape, UncheckedBitwiseCast) OPERAND_OWNERSHIP(BitwiseEscape, ValueToBridgeObject) OPERAND_OWNERSHIP(BitwiseEscape, RefToRawPointer) OPERAND_OWNERSHIP(BitwiseEscape, UncheckedTrivialBitCast) +OPERAND_OWNERSHIP(BitwiseEscape, BridgeObjectToWord) // Instructions that end the lifetime of an owned value. OPERAND_OWNERSHIP(DestroyingConsume, AutoreleaseValue)