swift
swift copied to clipboard
[6.0][Runtime] Mask out spare bits after copying for Error in CVW
Explanation: When the spare bits of an Error objects are used to store tag bits, this caused the enum tag to be lost, which caused the wrong enum cases to be matched. Scope: Only affects compact value witnesses Risk: Low. Only affects CVW Testing: Added test cases that observe the issue before the fix Issue: rdar://127379960 Reviewer: @mikeash Main branch PR: https://github.com/apple/swift/pull/73426
@swift-ci test