[PATCH] D48534: [NFC] Prefer (void) to LLVM_ATTRIBUTE_UNUSED for unused var in GlobalISElemitter.cpp.
Andrei Elovikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 25 01:39:20 PDT 2018
a.elovikov created this revision.
a.elovikov added reviewers: dsanders, craig.topper.
Herald added subscribers: kristof.beyls, rovka.
https://reviews.llvm.org/D48534
Files:
llvm/utils/TableGen/GlobalISelEmitter.cpp
Index: llvm/utils/TableGen/GlobalISelEmitter.cpp
===================================================================
--- llvm/utils/TableGen/GlobalISelEmitter.cpp
+++ llvm/utils/TableGen/GlobalISelEmitter.cpp
@@ -4110,8 +4110,8 @@
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; });
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48534.152635.patch
Type: text/x-patch
Size: 633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180625/ca21ecf5/attachment.bin>
More information about the llvm-commits
mailing list