aboutsummaryrefslogtreecommitdiffstats
path: root/lib/MC/MachObjectWriter.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-03-25 07:10:05 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-03-25 07:10:05 +0000
commit413c81a4b73bc173b9c671349e6e5691ca588266 (patch)
treef73ec6969b85b77433afd3d332889088030c934c /lib/MC/MachObjectWriter.cpp
parent58c1d5aad5513e4c1d897363a03807fed3beac07 (diff)
downloadexternal_llvm-413c81a4b73bc173b9c671349e6e5691ca588266.zip
external_llvm-413c81a4b73bc173b9c671349e6e5691ca588266.tar.gz
external_llvm-413c81a4b73bc173b9c671349e6e5691ca588266.tar.bz2
Fix -Asserts warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99499 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/MC/MachObjectWriter.cpp')
-rw-r--r--lib/MC/MachObjectWriter.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/MC/MachObjectWriter.cpp b/lib/MC/MachObjectWriter.cpp
index 4382c2f..44e9839 100644
--- a/lib/MC/MachObjectWriter.cpp
+++ b/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;
}