Change unreachable code to error. Remove unreachable where the compiler now can detect reachability.

This commit is contained in:
Christoffer Lerno
2023-07-25 23:31:05 +02:00
parent 242006d05d
commit 3929e2057d
3 changed files with 1 additions and 3 deletions

View File

@@ -37,7 +37,6 @@ fn float _cosf(float x) @extern("cosf") @weak @nostrip
case 2: return -__cosdf(y);
default: return __sindf(y);
}
unreachable();
}
/* origin: FreeBSD /usr/src/lib/msun/src/s_cos.c */

View File

@@ -70,7 +70,6 @@ fn float _sinf(float x) @weak @extern("sinf") @nostrip
case 2: return __sindf(-y);
default: return -__cosdf(y);
}
unreachable();
}
/* origin: FreeBSD /usr/src/lib/msun/src/s_sin.c */