summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/WasmObjectWriter.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-02-24 13:31:52 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-02-24 13:31:52 +0000
commit9b49f36a036a53d2cc600527a8b403cd48f7e411 (patch)
treefd3f9a8fb8e752fe6581cb44f7569537ee3b680a /llvm/lib/MC/WasmObjectWriter.cpp
parent20cf0749cb2b8f6f2ae8fbd146a03684310de793 (diff)
downloadbcm5719-llvm-9b49f36a036a53d2cc600527a8b403cd48f7e411.tar.gz
bcm5719-llvm-9b49f36a036a53d2cc600527a8b403cd48f7e411.zip
Fix "enumeral and non-enumeral type in conditional expression" gcc7 warning. NFCI.
llvm-svn: 354745
Diffstat (limited to 'llvm/lib/MC/WasmObjectWriter.cpp')
-rw-r--r--llvm/lib/MC/WasmObjectWriter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/MC/WasmObjectWriter.cpp b/llvm/lib/MC/WasmObjectWriter.cpp
index 01ca73e3230..b985d4bf4d3 100644
--- a/llvm/lib/MC/WasmObjectWriter.cpp
+++ b/llvm/lib/MC/WasmObjectWriter.cpp
@@ -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);
OpenPOWER on IntegriCloud