Skip to content

Commit 29bf5cd

Browse files
author
Mikhail Gudim
committed
address review comments.
1 parent 695baef commit 29bf5cd

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/include/llvm/CodeGen/Register.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,7 @@ class Register {
9292
/// Compute the frame index from a register value representing a stack slot.
9393
int stackSlotIndex() const {
9494
assert(isStack() && "Not a stack slot");
95-
return static_cast<int>(
96-
SignExtend64<MaxFrameIndexBitwidth>(Reg & Register::StackSlotMask));
95+
return SignExtend32<MaxFrameIndexBitwidth>(Reg & Register::StackSlotMask);
9796
}
9897

9998
constexpr operator unsigned() const { return Reg; }

0 commit comments

Comments
 (0)