diff options
| author | Craig Topper <craig.topper@sifive.com> | 2025-01-18 23:36:56 -0800 |
|---|---|---|
| committer | Craig Topper <craig.topper@sifive.com> | 2025-01-19 13:18:04 -0800 |
| commit | b7eee2c3fe953df5f5aa1f543759d9a1e54d5ef7 (patch) | |
| tree | 2c88c49a7ae6f0b683276ee27de1a3d894950409 /llvm/lib/CodeGen/CallingConvLower.cpp | |
| parent | 69d3ba3db922fca8cfc47b5f115b6bea6a737aab (diff) | |
[CodeGen] Remove some implict conversions of MCRegister to unsigned by using(). NFC
Many of these are indexing BitVectors or something where we can't
using MCRegister and need the register number.
Diffstat (limited to 'llvm/lib/CodeGen/CallingConvLower.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/CallingConvLower.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/CallingConvLower.cpp b/llvm/lib/CodeGen/CallingConvLower.cpp index b7152587a9fa..cebc9f5c4639 100644 --- a/llvm/lib/CodeGen/CallingConvLower.cpp +++ b/llvm/lib/CodeGen/CallingConvLower.cpp @@ -61,12 +61,12 @@ void CCState::HandleByVal(unsigned ValNo, MVT ValVT, MVT LocVT, /// Mark a register and all of its aliases as allocated. void CCState::MarkAllocated(MCPhysReg Reg) { for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) - UsedRegs[*AI / 32] |= 1 << (*AI & 31); + UsedRegs[(*AI).id() / 32] |= 1 << ((*AI).id() & 31); } void CCState::MarkUnallocated(MCPhysReg Reg) { for (MCRegAliasIterator AI(Reg, &TRI, true); AI.isValid(); ++AI) - UsedRegs[*AI / 32] &= ~(1 << (*AI & 31)); + UsedRegs[(*AI).id() / 32] &= ~(1 << ((*AI).id() & 31)); } bool CCState::IsShadowAllocatedReg(MCRegister Reg) const { |
