[llvm] [RISCV][NFC] Fix a warning (PR #127090)

Piotr Fusik via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 13 08:40:18 PST 2025


pfusik wrote:

```
gcc version 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)

/home/p.fusik/upstream/llvm-project/llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp: In member function ‘virtual bool {anonymous}::RISCVVMV0Elimination::runOnMachineFunction(llvm::MachineFunction&)’:
/home/p.fusik/upstream/llvm-project/llvm/lib/Target/RISCV/RISCVVMV0Elimination.cpp:164: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses]
  164 |                  MRI.getVRegDef(MO.getReg())->isInlineAsm() &&
      |                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  165 |                      "Non-inline-asm use of vmv0 left behind");
      |
```

https://github.com/llvm/llvm-project/pull/127090


More information about the llvm-commits mailing list