about summary refs log tree commit diff
path: root/compiler/rustc_interface/src
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2023-08-21 15:27:08 -0700
committerJosh Stone <jistone@redhat.com>2023-08-21 15:27:08 -0700
commitef0651972fcbc6afc56ca7b9e734c354f4f90be4 (patch)
tree608a9f0c343c3cc55c4b9a2664583216facb10f7 /compiler/rustc_interface/src
parentfe5f5912579d02c4e6088c89574493dfa988531a (diff)
downloadrust-ef0651972fcbc6afc56ca7b9e734c354f4f90be4.tar.gz
rust-ef0651972fcbc6afc56ca7b9e734c354f4f90be4.zip
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:       |                          ^~~~~~
```
Diffstat (limited to 'compiler/rustc_interface/src')
0 files changed, 0 insertions, 0 deletions