File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -12366,7 +12366,7 @@ def err_preserve_enum_value_not_const: Error<
1236612366 "__builtin_preserve_enum_value argument %0 not a constant">;
1236712367
1236812368def err_bit_cast_non_trivially_copyable : Error<
12369- "__builtin_bit_cast %select{source|destination}0 type must be trivially copyable">;
12369+ "' __builtin_bit_cast' %select{source|destination}0 type must be trivially copyable">;
1237012370def err_bit_cast_type_size_mismatch : Error<
1237112371 "size of '__builtin_bit_cast' source type %0 does not match destination type %1 (%2 vs %3 bytes)">;
1237212372
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ struct not_trivially_copyable {
3232 virtual void foo () {}
3333};
3434
35- // expected-error@+1{{__builtin_bit_cast source type must be trivially copyable}}
35+ // expected-error@+1{{' __builtin_bit_cast' source type must be trivially copyable}}
3636constexpr unsigned long ul = __builtin_bit_cast(unsigned long , not_trivially_copyable{});
3737
38- // expected-error@+1 {{__builtin_bit_cast destination type must be trivially copyable}}
38+ // expected-error@+1 {{' __builtin_bit_cast' destination type must be trivially copyable}}
3939constexpr long us = __builtin_bit_cast(unsigned long &, 0L );
4040
4141namespace PR42936 {
You can’t perform that action at this time.
0 commit comments