diff options
| -rw-r--r-- | backend/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp b/backend/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp index 3c0ec35..1e10b16 100644 --- a/backend/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp +++ b/backend/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp @@ -756,7 +756,7 @@ Expected<void> RISCVLegalizerInfo::legalizeBRJT(MachineInstr &Instruction, } auto EntryType = LowLevelType::makeCategoryNeutralScalar( - static_cast<std::uint32_t>(Table->EntrySize) * std::uint32_t{8}); + static_cast<std::uint64_t>(Table->EntrySize) * std::uint64_t{8}); if (!EntryType) return std::unexpected(EntryType.error()); auto EntryMemorySize = MemorySize::fixed(Table->EntrySize); |
