Skip to content

Commit

Permalink
[clang][Interp][NFC] Return integer from Boolean::bitWidth()
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Jul 4, 2023
1 parent 74514e8 commit a936357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/AST/Interp/Boolean.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class Boolean final {

Boolean toUnsigned() const { return *this; }

constexpr static unsigned bitWidth() { return true; }
constexpr static unsigned bitWidth() { return 1; }
bool isZero() const { return !V; }
bool isMin() const { return isZero(); }

Expand Down

0 comments on commit a936357

Please sign in to comment.