From a85a90773cc71953bee151b7398f71f490e00672 Mon Sep 17 00:00:00 2001 From: Duncan Sands Date: Tue, 29 Jun 2010 13:30:08 +0000 Subject: The variable ValueSize is set to 1 on both code paths, and then ignored! Remove it. llvm-svn: 107138 --- llvm/lib/MC/MCAssembler.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'llvm/lib/MC') diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp index 69f40a1c191..7d845549278 100644 --- a/llvm/lib/MC/MCAssembler.cpp +++ b/llvm/lib/MC/MCAssembler.cpp @@ -684,12 +684,8 @@ void MCAssembler::Finish() { for (MCAssembler::iterator it = begin(), ie = end(); it != ie; ++it) { // Create dummy fragments to eliminate any empty sections, this simplifies // layout. - if (it->getFragmentList().empty()) { - unsigned ValueSize = 1; - if (getBackend().isVirtualSection(it->getSection())) - ValueSize = 1; + if (it->getFragmentList().empty()) new MCFillFragment(0, 1, 0, it); - } it->setOrdinal(SectionIndex++); } -- cgit v1.2.3