Bug 1891688: Don't rely on static_assert(false) being valid in uninstantiated templat...
commitedba18f766b01bc1dbbd4599676e487989bcf58d
authorAndré Bargull <andre.bargull@gmail.com>
Wed, 17 Apr 2024 05:52:03 +0000 (17 05:52 +0000)
committerAndré Bargull <andre.bargull@gmail.com>
Wed, 17 Apr 2024 05:52:03 +0000 (17 05:52 +0000)
treed37d64a100c3cbe9f64a032abb5f95375d94ade1
parent0e7846c3b474873d5550a4cd7f9d039bcaf6ad34
Bug 1891688: Don't rely on static_assert(false) being valid in uninstantiated templates. r=jandem

Clang-17 (or later) and GCC-13 (or later) support <https://cplusplus.github.io/CWG/issues/2518.html>
even with `-std=c++17`, but we still support older compilers, so we can't use `static_assert` here.
Also replaced `if constexpr` with a simple `if`, because the `constexpr` part is no longer used.

Differential Revision: https://phabricator.services.mozilla.com/D207527
js/src/jit/CodeGenerator.cpp