Skip to content

Commit

Permalink
Auto merge of #115079 - cuviper:unused-mcinfo, r=Mark-Simulacrum
Browse files Browse the repository at this point in the history
Move a local to the `#if` block where it is used

For other cases (LLVM < 17), this was complaining under `-Wall`:

```
warning: llvm-wrapper/PassWrapper.cpp: In function ‘void LLVMRustPrintTargetCPUs(LLVMTargetMachineRef, const char*)’:
warning: llvm-wrapper/PassWrapper.cpp:311:26: warning: unused variable ‘MCInfo’ [-Wunused-variable]
warning:   311 |   const MCSubtargetInfo *MCInfo = Target->getMCSubtargetInfo();
warning:       |                          ^~~~~~
```
  • Loading branch information
bors committed Aug 27, 2023
2 parents d586579 + 8db9ba7 commit 9abdcad
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 9abdcad

Please sign in to comment.