From 65493fd57a04546d4a31ea4451b76a093bb1d94b Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 5 May 2023 12:12:45 -0700 Subject: [PATCH] [MC] Simplify flushPendingLabels. NFC --- llvm/lib/MC/MCSection.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/MC/MCSection.cpp b/llvm/lib/MC/MCSection.cpp index 7547558fe6e2..883cb5d57963 100644 --- a/llvm/lib/MC/MCSection.cpp +++ b/llvm/lib/MC/MCSection.cpp @@ -94,9 +94,6 @@ void MCSection::addPendingLabel(MCSymbol *label, unsigned Subsection) { void MCSection::flushPendingLabels(MCFragment *F, uint64_t FOffset, unsigned Subsection) { - if (PendingLabels.empty()) - return; - // Set the fragment and fragment offset for all pending symbols in the // specified Subsection, and remove those symbols from the pending list. for (auto It = PendingLabels.begin(); It != PendingLabels.end(); ++It) { -- 2.34.1