Open ProfFan opened 1 year ago
(tuple_type num_elements=1
(tuple_type_elt
(sil_function_type type="@callee_guaranteed (@inout \xCF\x84_0_0, Double) -> ()"
(input=generic_type_param_type depth=0 index=0)
(input=struct_type decl="Swift.(file).Double")
(substitution_map null_generic_signature)
(substitution_map null_generic_signature))))
Reconstructed type:
(sil_function_type type="@callee_guaranteed (@inout \xCF\x84_0_0, Double) -> ()"
(input=generic_type_param_type depth=0 index=0)
(input=struct_type decl="Swift.(file).Double")
(substitution_map null_generic_signature)
(substitution_map null_generic_signature))
The single member tuple in the original signature is stripped, but not stripped in the roundtrip debugger. For the 2nd issue I have no idea what is happening.
This may be another case handled by https://github.com/apple/swift/pull/68777 , but I could be wrong.
Original type:
(tuple_type num_elements=1
(tuple_type_elt
(sil_function_type type="@callee_guaranteed (@inout Double, Double) -> ()"
(input=struct_type decl="Swift.(file).Double")
(input=struct_type decl="Swift.(file).Double")
(substitution_map null_generic_signature)
(substitution_map null_generic_signature))))
Reconstructed type:
(sil_function_type type="@callee_guaranteed (@inout Double, Double) -> ()"
(input=struct_type decl="Swift.(file).Double")
(input=struct_type decl="Swift.(file).Double")
(substitution_map null_generic_signature)
(substitution_map null_generic_signature))
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Tested with the 2023-10-05 nightly Apple Swift version 5.11-dev (LLVM 9be5c57af9401d5, Swift 1129adb58d1b047) Target: arm64-apple-macosx14.0
, still failing @BradLarson
Description
Compiler crashes when compiling
with
However, build fails with another bug if I pass
-disable-round-trip-debug-types
which can be mitigated by adding
-validate-tbd-against-ir=none
. After this it builds fine.@BradLarson any help is really appreciated!
Steps to reproduce
Reproducer: https://github.com/ProfFan/swift-autodiff-crasher
Just build with latest nightly Swift in Debug.
Expected behavior
Should build without issue.
Environment