[PATCH] D64372: [LLD] NFC: Fixed GCC warning in wasm/OutputSections.cpp
Denis Bakhvalov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 15:25:37 PDT 2019
dendibakh created this revision.
dendibakh added a reviewer: tlively.
Herald added subscribers: llvm-commits, sunfish, aheejin, sbc100.
Herald added a project: LLVM.
This fixes PR42546.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D64372
Files:
lld/wasm/OutputSections.cpp
Index: lld/wasm/OutputSections.cpp
===================================================================
--- lld/wasm/OutputSections.cpp
+++ lld/wasm/OutputSections.cpp
@@ -132,9 +132,8 @@
OS.flush();
BodySize = DataSectionHeader.size();
- assert(!Config->Pic ||
- Segments.size() <= 1 &&
- "Currenly only a single data segment is supported in PIC mode");
+ assert((!Config->Pic || Segments.size() <= 1) &&
+ "Currenly only a single data segment is supported in PIC mode");
for (OutputSegment *Segment : Segments) {
raw_string_ostream OS(Segment->Header);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D64372.208523.patch
Type: text/x-patch
Size: 602 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190708/16bf1353/attachment.bin>
More information about the llvm-commits
mailing list