diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2020-02-15 18:34:06 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2020-02-15 18:35:57 +0300 |
commit | b7c8a8e834afbbe9da9cec185d212a26ffd7aefb (patch) | |
tree | 1fc53821fbfc4b93b7a09c4d4ca38782953d7356 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | |
parent | b25fc4123c77097c05ea221e023fa5c6a16e0f41 (diff) | |
download | llvm-b7c8a8e834afbbe9da9cec185d212a26ffd7aefb.zip llvm-b7c8a8e834afbbe9da9cec185d212a26ffd7aefb.tar.gz llvm-b7c8a8e834afbbe9da9cec185d212a26ffd7aefb.tar.bz2 |
[obj2yaml] - Fix a -Wsign-compare warning gived by GCC 9.2
I was reported that with commit:
https://github.com/llvm/llvm-project/commit/d3963051c490
gcc-9.2 is giving the warning below.
This should help (I have no gcc 9.2 to test).
[ 57%] Building CXX object tools/obj2yaml/CMakeFiles/obj2yaml.dir/elf2yaml.cpp.o
/llvm/tools/obj2yaml/elf2yaml.cpp: In instantiation of ‘llvm::Expected<llvm::ELFYAML::Object*>
{anonymous}::ELFDumper<ELFT>::dump() [with ELFT = llvm::object::ELFType<llvm::support::little, false>]’:
/llvm/tools/obj2yaml/elf2yaml.cpp:1218:31: required from ‘llvm::Error elf2yaml(llvm::raw_ostream&,
const llvm::object::ELFFile<ELFT>&) [with ELFT = llvm::object::ELFType<llvm::support::little, false>]’
/llvm/tools/obj2yaml/elf2yaml.cpp:1231:47: required from here
/llvm/tools/obj2yaml/elf2yaml.cpp:207:41: warning: comparison of integer expressions of different
signedness: ‘llvm::support::detail::packed_endian_specific_integral<unsigned int, llvm::support::little, 1>::value_type’ {aka ‘unsigned int’} and ‘int’ [-Wsign-compare]
207 | if (!SymTab || SymTabShndx->sh_link != SymTab - Sections.begin())
/llvm/tools/obj2yaml/elf2yaml.cpp: In instantiation of ‘llvm::Expected<llvm::ELFYAML::Object*>
{anonymous}::ELFDumper<ELFT>::dump() [with ELFT = llvm::object::ELFType<llvm::support::big, false>]’:
...
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp')
0 files changed, 0 insertions, 0 deletions