[llvm] 90a1e65 - Fix MSVC implicit truncation narrowing conversion warning.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 19 06:41:57 PDT 2020
Author: Simon Pilgrim
Date: 2020-08-19T14:41:40+01:00
New Revision: 90a1e6509fc54f4acb61440d720fb4655d05b32e
URL: https://github.com/llvm/llvm-project/commit/90a1e6509fc54f4acb61440d720fb4655d05b32e
DIFF: https://github.com/llvm/llvm-project/commit/90a1e6509fc54f4acb61440d720fb4655d05b32e.diff
LOG: Fix MSVC implicit truncation narrowing conversion warning.
Added:
Modified:
llvm/tools/obj2yaml/dwarf2yaml.cpp
Removed:
################################################################################
diff --git a/llvm/tools/obj2yaml/dwarf2yaml.cpp b/llvm/tools/obj2yaml/dwarf2yaml.cpp
index 045623227698..36b8a638d62b 100644
--- a/llvm/tools/obj2yaml/dwarf2yaml.cpp
+++ b/llvm/tools/obj2yaml/dwarf2yaml.cpp
@@ -142,8 +142,8 @@ dumpPubSection(const DWARFContext &DCtx, const DWARFSection &Section,
Y.UnitSize = Sets[0].Size;
for (const DWARFDebugPubTable::Entry &E : Sets[0].Entries)
- Y.Entries.push_back(
- DWARFYAML::PubEntry{E.SecOffset, E.Descriptor.toBits(), E.Name});
+ Y.Entries.push_back(DWARFYAML::PubEntry{(uint32_t)E.SecOffset,
+ E.Descriptor.toBits(), E.Name});
return Y;
}
More information about the llvm-commits
mailing list