From 35344b129a94f3eafe173005be769b1f47c70ad5 Mon Sep 17 00:00:00 2001 From: Andrei Elovikov Date: Tue, 26 Jun 2018 07:05:08 +0000 Subject: [PATCH] [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 --- utils/TableGen/GlobalISelEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/TableGen/GlobalISelEmitter.cpp b/utils/TableGen/GlobalISelEmitter.cpp index 61d17a53e36..69726cc9f25 100644 --- a/utils/TableGen/GlobalISelEmitter.cpp +++ b/utils/TableGen/GlobalISelEmitter.cpp @@ -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; }); }