Skip to content

Commit

Permalink
[NFC] Prefer (void) to LLVM_ATTRIBUTE_UNUSED for unused var in Global…
Browse files Browse the repository at this point in the history
…ISElemitter.cpp.

Reviewers: dsanders, craig.topper

Reviewed By: dsanders

Subscribers: rovka, kristof.beyls, llvm-commits

Differential Revision: https://reviews.llvm.org/D48534

llvm-svn: 335581
  • Loading branch information
aelovikov-intel committed Jun 26, 2018
1 parent 550517b commit 36cbbff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm/utils/TableGen/GlobalISelEmitter.cpp
Expand Up @@ -4110,8 +4110,8 @@ void GlobalISelEmitter::emitMIPredicateFns(raw_ostream &OS) {
return emitCxxPredicateFns(
OS, "GISelPredicateCode", "MI", "const MachineInstr &", "MI",
" const MachineFunction &MF = *MI.getParent()->getParent();\n"
" const LLVM_ATTRIBUTE_UNUSED MachineRegisterInfo &MRI = "
"MF.getRegInfo();",
" const MachineRegisterInfo &MRI = MF.getRegInfo();\n"
" (void)MRI;",
[](const Record *R) { return true; });
}

Expand Down

0 comments on commit 36cbbff

Please sign in to comment.