[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
Tue Jun 26 00:09:55 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rL335581: [NFC] Prefer (void) to LLVM_ATTRIBUTE_UNUSED for unused var in… (authored by a.elovikov, committed by ).
Changed prior to commit:
https://reviews.llvm.org/D48534?vs=152635&id=152845#toc
Repository:
rL LLVM
https://reviews.llvm.org/D48534
Files:
llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
Index: llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
===================================================================
--- llvm/trunk/utils/TableGen/GlobalISelEmitter.cpp
+++ llvm/trunk/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.152845.patch
Type: text/x-patch
Size: 651 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180626/1ea558f0/attachment.bin>
More information about the llvm-commits
mailing list