[llvm] r335581 - [NFC] Prefer (void) to LLVM_ATTRIBUTE_UNUSED for unused var in GlobalISElemitter.cpp.
Andrei Elovikov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 26 00:05:08 PDT 2018
Author: a.elovikov
Date: Tue Jun 26 00:05:08 2018
New Revision: 335581
URL: http://llvm.org/viewvc/llvm-project?rev=335581&view=rev
Log:
[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
Modified:
llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
Modified: llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp?rev=335581&r1=335580&r2=335581&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp Tue Jun 26 00:05:08 2018
@@ -4110,8 +4110,8 @@ void GlobalISelEmitter::emitMIPredicateF
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; });
}
More information about the llvm-commits
mailing list