Erik Eckstein
bcc9753288
CastOptimizer: don't assume dynamic casts from ObjectiveC classes to unrelated classes will fail
...
In case of ObjectiveC classes, the runtime type can differ from its declared type.
Therefore a cast between (compile-time) unrelated classes may succeed at runtime.
rdar://149810124
2025-05-02 07:24:30 +02:00
Nate Chandler
18246f5b26
[Test] Disabled Interpreter/bridged_casts_folding.swift for back_deployment_runtime.
...
rdar://76566897
2021-04-13 15:42:01 -07:00
Saleem Abdulrasool
a16aef2f47
test: repair Interpreter/bridged_casts_folding on ASi
...
ARM64 generates a `brk #0x1` for `unreachable` which generates a
SIGTRAP. On x86, we would generate a `ud2` rather than `int 3` which
are treated as `SIGILL` and `SIGTRAP` respectively.
2020-08-07 14:01:54 -07:00
Karoy Lorentey
821f581f77
[test] Interpreter/bridged_casts_folding: Don’t run during backdeployment tests
2019-11-01 10:47:12 -07:00
Karoy Lorentey
ef20f69819
[test] bridged_casts_folding: Explicitly override optimization level to -Onone
...
Otherwise the unoptimized tests fail when the tests are run with optimizations enabled.
2019-04-23 15:18:43 -07:00
Karoy Lorentey
ae1bc7623c
[test] bridged_casts_folding: make tests more resilient against changes in class cluster impl details
2019-03-28 14:32:06 -07:00
Karoy Lorentey
84bf144d3a
[test] Update expected error message
2019-03-28 14:32:06 -07:00
Karoy Lorentey
a051b823b7
Revert "Revert "Reapply patch with test, but this time add a pizza unicode emoji to make sure we do not use tagged pointers" ( #23180 )"
...
This reverts commit 8d4aa2aa9a .
2019-03-28 14:32:06 -07:00
Stephen Canon
8d4aa2aa9a
Revert "Reapply patch with test, but this time add a pizza unicode emoji to make sure we do not use tagged pointers" ( #23180 )
2019-03-08 12:06:59 -05:00
Michael Gottesman
c777123c4e
Fixes to make sure this test case never uses tagged pointers for strings.
2019-03-06 16:38:21 -08:00
Michael Gottesman
c9d6fa2168
Revert "Revert "Translate sil-opt bridge cast folding test into an Interpreter test." ( #23142 )"
...
This reverts commit 116820af6a .
2019-03-06 16:38:21 -08:00
Stephen Canon
116820af6a
Revert "Translate sil-opt bridge cast folding test into an Interpreter test." ( #23142 )
2019-03-06 19:18:52 -05:00
Michael Gottesman
f5a6032b70
Translate sil-opt bridge cast folding test into an Interpreter test.
...
This will run with the ownership verifier and will improve our test coverage of
the cast optimizer.
2019-03-05 21:11:33 -08:00