Files
swift-mirror/test/IRGen/Inputs/c_functions_error.h
John McCall 06c65464cf Don't crash if an error is emitted by Clang IR-generation.
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.
2016-05-17 12:38:53 -07:00

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);
}