Commit 09f4492
authored
[RISCV] Check for register where immediate should be in RISCVInstrInfo::verifyInstruction. (llvm#120286)
The generic verifier will do this if the operand type is
OPERAND_IMMEDIATE, but we use our own custom operand types. Immediate
operands are still allowed to be globals, constant pools, blockaddress,
etc. so we can't check !isImm().1 parent c03fc92 commit 09f4492
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2451 | 2451 | | |
2452 | 2452 | | |
2453 | 2453 | | |
| 2454 | + | |
| 2455 | + | |
| 2456 | + | |
| 2457 | + | |
2454 | 2458 | | |
2455 | 2459 | | |
2456 | 2460 | | |
| |||
0 commit comments