[clang][Interp][NFC] Simplify Integral using constexpr if
authorTimm Bäder <tbaeder@redhat.com>
Tue, 27 Sep 2022 15:10:20 +0000 (17:10 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Fri, 14 Oct 2022 10:47:07 +0000 (12:47 +0200)
commit81c5b5d80efab9de616d6f8e42cd007f9c16e36b
treee84fe1bb075b13f0e9a30ccad8c564050cbb959b
parent699449d71eadb1499bf6a98999c2abdaa6b1294a
[clang][Interp][NFC] Simplify Integral using constexpr if

Just keep one version of the function and differentiate between
std::is_signed() and unsigned using a constexpr if, instead of having
two different versions for the signed and unsigned cases.
clang/lib/AST/Interp/Integral.h