mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Clang IR-generation can fail. When it does this, it destroys the module. Previously, we were blithely assuming this couldn't happen, and so we would crash on the deallocated module. Delay the finalization of the Clang code generator until our own module finalization, which is a more appropriate place for it anyway, and then just bail out of the last few steps if Clang fails.
7 lines
167 B
C
7 lines
167 B
C
static inline void produce_error_in_clang_irgen() {
|
|
typedef double __m128d __attribute__((__vector_size__(16)));
|
|
|
|
__m128d a, b;
|
|
__builtin_ia32_addsubps(b, a);
|
|
}
|