The variable ValueSize is set to 1 on both code paths, and then
[oota-llvm.git] / lib / MC / MCAssembler.cpp
index 69f40a1c1915e39e05ed0ffc88bb0863d5d0d70b..7d8455492780caef76a3cc5ded58c37b6ab8e21d 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++);
   }