Skip to content

Commit 6078be6

Browse files
[TableGen] Fixed 'unused but set variable' warning. NFCI
1 parent ba40176 commit 6078be6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/utils/TableGen/OptRSTEmitter.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ void EmitOptRST(RecordKeeper &Records, raw_ostream &OS) {
4141
// Map options to their group.
4242
for (unsigned i = 0, e = Opts.size(); i != e; ++i) {
4343
const Record &R = *Opts[i];
44-
const ListInit *GroupFlags = nullptr;
4544
if (const DefInit *DI = dyn_cast<DefInit>(R.getValueInit("Group"))) {
46-
GroupFlags = DI->getDef()->getValueAsListInit("Flags");
4745
OptionsByGroup[DI->getDef()->getValueAsString("Name")].push_back(Opts[i]);
4846
} else {
4947
OptionsByGroup["options"].push_back(Opts[i]);

0 commit comments

Comments
 (0)