diff options
author | Daniel Dunbar <daniel@zuster.org> | 2010-03-25 07:10:05 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2010-03-25 07:10:05 +0000 |
commit | eaa792f0d96fdc65e113a4ece68c6689fc6fa57a (patch) | |
tree | 46ff2501d4201a71a1746c5e513452d9cc96af11 /llvm/lib/MC | |
parent | e8101558056079ea27a53bd4df9091978172e523 (diff) | |
download | bcm5719-llvm-eaa792f0d96fdc65e113a4ece68c6689fc6fa57a.tar.gz bcm5719-llvm-eaa792f0d96fdc65e113a4ece68c6689fc6fa57a.zip |
Fix -Asserts warning.
llvm-svn: 99499
Diffstat (limited to 'llvm/lib/MC')
-rw-r--r-- | llvm/lib/MC/MachObjectWriter.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/MC/MachObjectWriter.cpp b/llvm/lib/MC/MachObjectWriter.cpp index 4382c2f4893..44e98394629 100644 --- a/llvm/lib/MC/MachObjectWriter.cpp +++ b/llvm/lib/MC/MachObjectWriter.cpp @@ -276,11 +276,10 @@ public: const MCSectionData &SD, uint64_t FileOffset, uint64_t RelocationsStart, unsigned NumRelocations) { uint64_t SectionSize = Layout.getSectionSize(&SD); - uint64_t SectionFileSize = Layout.getSectionFileSize(&SD); // The offset is unused for virtual sections. if (Asm.getBackend().isVirtualSection(SD.getSection())) { - assert(SectionFileSize == 0 && "Invalid file size!"); + assert(Layout.getSectionFileSize(&SD) == 0 && "Invalid file size!"); FileOffset = 0; } |