diff options
author | Duncan Sands <baldrick@free.fr> | 2010-06-29 13:30:08 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2010-06-29 13:30:08 +0000 |
commit | 6f74f69ff4a6e365272a754f0984c0321755976d (patch) | |
tree | e50e0c97b9971bc3659ef37c8cea2e4d07d1148c /lib/MC/MCAssembler.cpp | |
parent | 5b96b26eb76b012a18c5e30b3a179aaf3c9e3e27 (diff) |
The variable ValueSize is set to 1 on both code paths, and then
ignored! Remove it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107138 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MCAssembler.cpp')
-rw-r--r-- | lib/MC/MCAssembler.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/MC/MCAssembler.cpp b/lib/MC/MCAssembler.cpp index 69f40a1c19..7d84554927 100644 --- a/lib/MC/MCAssembler.cpp +++ b/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++); } |