Open kovdan01 opened 1 week ago
Tagging @asl
Also tagging @atrick @eeckstein
@atrick The extend_lifetime
is created in SILGenFunction::destroyLocalVariable
. Can you please take a look?
I'm curious: Can you explain why you're disabling onone-simplification?
I'm curious: Can you explain why you're disabling onone-simplification?
@tbkka I was working on another AutoDiff-related issue, and some tests there run with disabled onone-simplification. So, just occasionally revealed this crash while constructing new test cases.
Description
When passing a member function to a free function as an argument and having
onone-simplification
pass disabled (swift-frontend -emit-sil -Xllvm -sil-disable-pass=OnoneSimplification
), we have an assertion failure when verifyingextend_lifetime
instruction withself
operand.Reproduction
Stack dump
Expected behavior
I suppose that
extend_lifetime
instruction should handleself
properlyEnvironment
Swift version 6.1-dev
Additional information
No response