Skip to content

Commit 695baef

Browse files
author
Mikhail Gudim
committed
addressed review comments.
1 parent 478c945 commit 695baef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/CodeGen/Register.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class Register {
5050
/// Convert a non-negative frame index to a stack slot register value.
5151
static Register index2StackSlot(int FI) {
5252
unsigned FIMasked = FI & Register::StackSlotMask;
53-
assert(isUInt<30>(FIMasked) &&
53+
assert(isUInt<MaxFrameIndexBitwidth>(FIMasked) &&
5454
"Frame index must be at most 30 bit as an unsigned integer");
5555
return Register(FIMasked | Register::StackSlotZero);
5656
}

0 commit comments

Comments
 (0)