mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-03 09:57:24 +00:00
Fix "enumeral and non-enumeral type in conditional expression" gcc7 warning. NFCI.
llvm-svn: 354745
This commit is contained in:
parent
57c726900a
commit
47517e0964
@ -1254,7 +1254,8 @@ uint64_t WasmObjectWriter::writeObject(MCAssembler &Asm,
|
||||
DataSegments.emplace_back();
|
||||
WasmDataSegment &Segment = DataSegments.back();
|
||||
Segment.Name = SectionName;
|
||||
Segment.InitFlags = Section.getPassive() ? wasm::WASM_SEGMENT_IS_PASSIVE : 0;
|
||||
Segment.InitFlags =
|
||||
Section.getPassive() ? (uint32_t)wasm::WASM_SEGMENT_IS_PASSIVE : 0;
|
||||
Segment.Offset = DataSize;
|
||||
Segment.Section = &Section;
|
||||
addData(Segment.Data, Section);
|
||||
|
Loading…
x
Reference in New Issue
Block a user