Skip to content

Commit 1d83f8f

Browse files
toppercarsenm
andauthored
Update llvm/include/llvm/CodeGen/Register.h
Co-authored-by: Matt Arsenault <[email protected]>
1 parent 696ea87 commit 1d83f8f

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
@@ -101,7 +101,7 @@ class Register {
101101
/// Compute the frame index from a register value representing a stack slot.
102102
int stackSlotIndex() const {
103103
assert(isStack() && "Not a stack slot");
104-
return int(Reg - MCRegister::FirstStackSlot);
104+
return static_cast<int>(Reg - MCRegister::FirstStackSlot);
105105
}
106106

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

0 commit comments

Comments
 (0)