Alex Lorenz
4858cb6225
[IRGen][interop] do not add 'nocapture' to not bitwise takable types
...
The use of 'nocapture' for parameters and return values is incorrect for C++ types, as they can actually capture a pointer into its own value (e.g. std::string in libstdc++)
rdar://115062687
2023-09-25 17:43:34 -07:00
Andrew Trick
da52e752c0
Update IRGen test for opaque pointers
2023-06-23 06:57:38 -07:00
Arnold Schwaighofer
c1a93e0bde
Move tests over to use the %use_no_opaque_pointers option
2023-06-14 10:49:48 -07:00
Arnold Schwaighofer
be9403ff65
Fix test IRGen/class_resilience_thunks.swift
2022-10-05 09:24:01 -07:00
Arnold Schwaighofer
9ee12db2a9
Fix tests for LLVM change that added anonymous parameter labeling
...
Fix for r367755.
2019-08-15 14:57:24 -07:00
Slava Pestov
1159af50d9
Rename -enable-resilience to -enable-library-evolution and make it a driver flag
...
Fixes <rdar://problem/47679085>.
2019-03-14 22:24:26 -04:00
Slava Pestov
f8d28811bc
IRGen: Relax an assertion
...
The result type mismatch comes up when we're calling a covariant
override of a class method resiliently as well.
2018-11-29 23:20:42 -05:00
Erik Eckstein
39bb14b094
change mangling prefix from $S to $s
...
This is the final ABI mangling prefix
rdar://problem/38471478
2018-09-19 13:55:11 -07:00
Slava Pestov
719ba2fb27
IRGen: Fix case where we would go through the vtable entry and not the dispatch thunk
...
Make sure we check resilience of the class defining the method,
and not the class with the override we're calling.
2018-09-07 21:57:16 -07:00
Saleem Abdulrasool
d746a6d1db
tests: annotate dllstorage on IRGen tests
...
This adds the dllstorage annotations on the tests. This first pass gets
most of the IRGen tests passing on Windows (though has dependencies on
other changes). However, this allows for the changes to be merged more
easily as we cannot regress other platforms here.
2018-04-23 20:21:10 -07:00
Slava Pestov
d118654fa8
Sema: Peephole for 'nil' literal of Optional type
2018-03-18 00:13:55 -07:00
Slava Pestov
9b0f6fca53
IRGen: Emit class dispatch thunks in IRGen instead of SILGen
...
This allows us to re-use the same code for emitting protocol dispatch
thunks.
2018-01-15 22:38:16 -08:00