[NFC] Prefer (void) to LLVM_ATTRIBUTE_UNUSED for unused var in GlobalISElemitter.cpp.

Reviewers: dsanders, craig.topper

Reviewed By: dsanders

Subscribers: rovka, kristof.beyls, llvm-commits

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

llvm-svn: 335581
This commit is contained in:
Andrei Elovikov 2018-06-26 07:05:08 +00:00
parent df8cb658c8
commit 35344b129a

View File

@ -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; });
}