File tree 2 files changed +3
-3
lines changed
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<
12366
12366
"__builtin_preserve_enum_value argument %0 not a constant">;
12367
12367
12368
12368
def 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">;
12370
12370
def err_bit_cast_type_size_mismatch : Error<
12371
12371
"size of '__builtin_bit_cast' source type %0 does not match destination type %1 (%2 vs %3 bytes)">;
12372
12372
Original file line number Diff line number Diff line change @@ -32,10 +32,10 @@ struct not_trivially_copyable {
32
32
virtual void foo () {}
33
33
};
34
34
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}}
36
36
constexpr unsigned long ul = __builtin_bit_cast(unsigned long , not_trivially_copyable{});
37
37
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}}
39
39
constexpr long us = __builtin_bit_cast(unsigned long &, 0L );
40
40
41
41
namespace PR42936 {
You can’t perform that action at this time.
0 commit comments