diff options
| author | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-29 00:38:11 +0800 |
|---|---|---|
| committer | Richard-Qin-X <richard.qin.001@gmail.com> | 2026-08-29 00:38:11 +0800 |
| commit | 6b07676fa9177bbf971afaf898dd9997e0664b95 (patch) | |
| tree | bf0335736c5bc9f87f36eac8f5194a6ea17caed2 /backend/lib | |
| parent | 96cc3e77afff5627cf1cacf42f788a752de00f74 (diff) | |
| download | rcc-project-6b07676fa9177bbf971afaf898dd9997e0664b95.tar.gz rcc-project-6b07676fa9177bbf971afaf898dd9997e0664b95.tar.xz | |
[RISCV] Widen jump table entry size arithmetic
Diffstat (limited to 'backend/lib')
| -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); |
