Skip to content

Commit

Permalink
[clang][Interp][NFC] Make IntegralAP::isSigned() constexpr
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Oct 29, 2023
1 parent 640274f commit f8fe400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/Interp/IntegralAP.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ template <bool Signed> class IntegralAP final {
bool isNegative() const { return !V.isNonNegative(); }
bool isMin() const { return V.isMinValue(); }
bool isMax() const { return V.isMaxValue(); }
static bool isSigned() { return Signed; }
static constexpr bool isSigned() { return Signed; }
bool isMinusOne() const { return Signed && V == -1; }

unsigned countLeadingZeros() const { return V.countl_zero(); }
Expand Down

0 comments on commit f8fe400

Please sign in to comment.