We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 696ea87 commit 1d83f8fCopy full SHA for 1d83f8f
llvm/include/llvm/CodeGen/Register.h
@@ -101,7 +101,7 @@ class Register {
101
/// Compute the frame index from a register value representing a stack slot.
102
int stackSlotIndex() const {
103
assert(isStack() && "Not a stack slot");
104
- return int(Reg - MCRegister::FirstStackSlot);
+ return static_cast<int>(Reg - MCRegister::FirstStackSlot);
105
}
106
107
constexpr operator unsigned() const { return Reg; }
0 commit comments