mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
get rid of using __builtin_unreachable
directly [Bug #17787]
As it is an independent feature from `clz`, `ctz` and `popcount`, it might be unavailable even if the latters are built in.
This commit is contained in:
parent
6c7d39aabe
commit
3a3033c138
Notes:
git
2021-04-10 16:05:24 +09:00
1 changed files with 3 additions and 3 deletions
|
@ -284,7 +284,7 @@ nlz_int64(uint64_t x)
|
|||
}
|
||||
else {
|
||||
/* :FIXME: Is there a way to make this branch a compile-time error? */
|
||||
__builtin_unreachable();
|
||||
UNREACHABLE_RETURN(~0);
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -419,7 +419,7 @@ rb_popcount64(uint64_t x)
|
|||
}
|
||||
else {
|
||||
/* :FIXME: Is there a way to make this branch a compile-time error? */
|
||||
__builtin_unreachable();
|
||||
UNREACHABLE_RETURN(~0);
|
||||
}
|
||||
|
||||
#else
|
||||
|
@ -492,7 +492,7 @@ ntz_int64(uint64_t x)
|
|||
}
|
||||
else {
|
||||
/* :FIXME: Is there a way to make this branch a compile-time error? */
|
||||
__builtin_unreachable();
|
||||
UNREACHABLE_RETURN(~0);
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue