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 | a85a90773cc71953bee151b7398f71f490e00672 (patch) | |
| tree | 2f72256d13e56b0928b01555e7dc49b8301e292e /llvm/lib | |
| parent | 1245e4c07d7e638d00c3bf390a5ea5e491617d64 (diff) | |
| download | bcm5719-llvm-a85a90773cc71953bee151b7398f71f490e00672.tar.gz bcm5719-llvm-a85a90773cc71953bee151b7398f71f490e00672.zip | |
The variable ValueSize is set to 1 on both code paths, and then
ignored! Remove it.
llvm-svn: 107138
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/MC/MCAssembler.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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++); } |

