Commit 919bbfb
committed
[RISCV] Check for register where immediate should be in RISCVInstrInfo::verifyInstruction.
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().
Fix the same typo as #120246 which is now detected by this.1 parent 659dbb6 commit 919bbfb
File tree
2 files changed
+5
-1
lines changed- llvm/lib/Target/RISCV
2 files changed
+5
-1
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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
| 701 | + | |
702 | 702 | | |
703 | 703 | | |
704 | 704 | | |
| |||
0 commit comments