Skip to content

Commit 83a1b40

Browse files
authored
[NFC] Fix unary minus operator on unsigned type warning (#153887)
Fixes: `warning C4146: unary minus operator applied to unsigned type, result still unsigned`
1 parent 69e4514 commit 83a1b40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/IR/BasicBlock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ class BasicBlock final : public Value, // Basic blocks are data objects also
6868
// Allow Function to renumber blocks.
6969
friend class Function;
7070
/// Per-function unique number.
71-
unsigned Number = -1u;
71+
unsigned Number = ~0u;
7272

7373
friend class BlockAddress;
7474
friend class SymbolTableListTraits<BasicBlock>;

0 commit comments

Comments
 (0)