diff --git a/llvm/utils/TableGen/CodeGenFormat.cpp b/llvm/utils/TableGen/CodeGenFormat.cpp index 636d8b8c7c85..0f6b4b7a1358 100644 --- a/llvm/utils/TableGen/CodeGenFormat.cpp +++ b/llvm/utils/TableGen/CodeGenFormat.cpp @@ -694,7 +694,6 @@ void TGInstrLayout::emitFormat(ConstTable &FieldsHierarchy, ConstTable &o, const std::string TargetClassName = Target + SlotsRegistry.GenSlotKindName; - auto end = slots().end(); bool firstIter = true; for (const auto &SlotField : slots()) { if (!firstIter)