From 1657f2ad994d348a9cfd7430abe110cbe6f977a4 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 1 Nov 2017 13:47:55 +0000 Subject: Fix warnings discovered by rL317076. [-Wunused-private-field] llvm-svn: 317091 --- llvm/utils/TableGen/X86FoldTablesEmitter.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/utils/TableGen/X86FoldTablesEmitter.cpp') diff --git a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp index 2fefe0a92aa..3ea7d28a6d5 100644 --- a/llvm/utils/TableGen/X86FoldTablesEmitter.cpp +++ b/llvm/utils/TableGen/X86FoldTablesEmitter.cpp @@ -317,11 +317,10 @@ getAltRegInst(const CodeGenInstruction *I, const RecordKeeper &Records, // matches the EVEX instruction of this object. class IsMatch { const CodeGenInstruction *MemInst; - const RecordKeeper &Records; public: IsMatch(const CodeGenInstruction *Inst, const RecordKeeper &Records) - : MemInst(Inst), Records(Records) {} + : MemInst(Inst) {} bool operator()(const CodeGenInstruction *RegInst) { Record *MemRec = MemInst->TheDef; -- cgit v1.2.3