The variable ValueSize is set to 1 on both code paths, and then
authorDuncan Sands <baldrick@free.fr>
Tue, 29 Jun 2010 13:30:08 +0000 (13:30 +0000)
committerDuncan Sands <baldrick@free.fr>
Tue, 29 Jun 2010 13:30:08 +0000 (13:30 +0000)
ignored!  Remove it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107138 91177308-0d34-0410-b5e6-96231b3b80d8

lib/MC/MCAssembler.cpp

index 69f40a1..7d84554 100644 (file)
@@ -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++);
   }