Snippets for llvm 22.1.8 from Nix aarch64-linux
Sourced from https://hydra.nixos.org/log/nsm9s4pbxvbzj65r2qzpm622ymbd5knz-llvm-22.1.8.drv.
-
/build/llvm-src-22.1.8/llvm/lib/Support/TarWriter.cpp:108:41: warning: '%011zo' directive output may be truncated writing between 11 and 21 bytes into a region of size 12 [-Wformat-truncation=] 108 | snprintf(Hdr.Size, sizeof(Hdr.Size), "%011zo", PaxAttr.size()); | ^~~~~~ -
/nix/store/cwn32dkv1iffrhh6sw1gk09nxb10dv17-glibc-2.42-67-dev/include/bits/string_fortified.h:29:10: warning: '__builtin___memcpy_chk' offset [64, 95] is out of the bounds [0, 64] of object 'out_array' with type 'uint8_t[64]' {aka 'unsigned char[64]'} [-Warray-bounds=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/nix/store/cwn32dkv1iffrhh6sw1gk09nxb10dv17-glibc-2.42-67-dev/include/bits/string_fortified.h:29:10: warning: '__builtin_memcpy' forming offset [64, 95] is out of the bounds [0, 64] of object 'out_array' with type 'uint8_t[64]' {aka 'unsigned char[64]'} [-Warray-bounds=] 29 | return __builtin___memcpy_chk (__dest, __src, __len, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 | __glibc_objsize0 (__dest)); | ~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/build/llvm-src-22.1.8/llvm/include/llvm/Object/SFrameParser.h:52:10: warning: '<unnamed>.llvm::object::SFrameParser<llvm::endianness::big>::FallibleFREIterator::FRE.llvm::object::SFrameParser<llvm::endianness::big>::FrameRowEntry::Info' is used uninitialized [-Wuninitialized] 52 | struct FrameRowEntry { | ^~~~~~~~~~~~~ -
/build/llvm-src-22.1.8/llvm/include/llvm/Object/SFrameParser.h:52:10: warning: '<unnamed>.llvm::object::SFrameParser<llvm::endianness::little>::FallibleFREIterator::FRE.llvm::object::SFrameParser<llvm::endianness::little>::FrameRowEntry::Info' is used uninitialized [-Wuninitialized] 52 | struct FrameRowEntry { | ^~~~~~~~~~~~~ -
/build/llvm-src-22.1.8/llvm/lib/Transforms/Utils/CodeMoverUtils.cpp:179:6: warning: 'bool {anonymous}::ControlConditions::isEquivalent(const {anonymous}::ControlConditions&) const' defined but not used [-Wunused-function] 179 | bool ControlConditions::isEquivalent(const ControlConditions &Other) const { | ^~~~~~~~~~~~~~~~~ -
/build/llvm-src-22.1.8/llvm/lib/Transforms/Utils/CodeMoverUtils.cpp:106:1: warning: 'static const std::optional<{anonymous}::ControlConditions> {anonymous}::ControlConditions::collectControlConditions(const llvm::BasicBlock&, const llvm::BasicBlock&, const llvm::DominatorTree&, const llvm::PostDominatorTree&, unsigned int)' defined but not used [-Wunused-function] 106 | ControlConditions::collectControlConditions(const BasicBlock &BB, | ^~~~~~~~~~~~~~~~~ -
/build/llvm-src-22.1.8/llvm/include/llvm/ADT/iterator.h:349:7: warning: '<unnamed>.llvm::pointer_iterator<llvm::filter_iterator_impl<const llvm::MachineOperand*, std::function<bool(const llvm::MachineOperand&)>, std::bidirectional_iterator_tag>, const llvm::MachineOperand*>::Ptr' is used uninitialized [-Wuninitialized] 349 | class pointer_iterator | ^~~~~~~~~~~~~~~~ -
/build/llvm-src-22.1.8/llvm/include/llvm/ADT/iterator.h:349:7: warning: '<unnamed>.llvm::pointer_iterator<llvm::filter_iterator_impl<llvm::MachineOperand*, std::function<bool(llvm::MachineOperand&)>, std::bidirectional_iterator_tag>, llvm::MachineOperand*>::Ptr' is used uninitialized [-Wuninitialized] 349 | class pointer_iterator | ^~~~~~~~~~~~~~~~ -
/build/llvm-src-22.1.8/llvm/lib/Transforms/Vectorize/VPlanPatternMatch.h:332:61: warning: parameter 'P' set but not used [-Wunused-but-set-parameter] 332 | bool all_of_tuple_elements(std::index_sequence<Is...>, Fn P) const { | ~~~^ -
/build/llvm-src-22.1.8/llvm/include/llvm/CodeGen/SelectionDAG.h:324:27: warning: storing the address of local variable 'Listener' in '*this.llvm::SelectionDAG::UpdateListeners' [-Wdangling-pointer=] 324 | DAG.UpdateListeners = this; | ~~~~~~~~~~~~~~~~~~~~^~~~~~ -
/build/llvm-src-22.1.8/llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:6316:40: warning: enumerated and non-enumerated type in conditional expression [-Wextra] 6316 | (Opcode == TargetOpcode::G_ASHR) ? TargetOpcode::G_LSHR : Opcode; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -
/nix/store/wqqb6mbnrnm380adc0ry5hdm449xix4f-gcc-15.3.0/include/c++/15.3.0/bits/atomic_base.h:501:31: warning: 'long unsigned int __atomic_load_8(const volatile void*, int)' writing 8 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=] 501 | return __atomic_load_n(&_M_i, int(__m)); | ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -
/nix/store/wqqb6mbnrnm380adc0ry5hdm449xix4f-gcc-15.3.0/include/c++/15.3.0/bits/new_allocator.h:172:66: warning: 'void operator delete(void*, std::size_t)' called on pointer '<unknown>' with nonzero offset [1, 9223372036854775807] [-Wfree-nonheap-object] 172 | _GLIBCXX_OPERATOR_DELETE(_GLIBCXX_SIZED_DEALLOC(__p, __n)); | ^ -
/build/llvm-src-22.1.8/llvm/include/llvm/CodeGen/SelectionDAG.h:518:53: warning: storing the address of local variable 'FlagsInserter' in '*DAG.llvm::SelectionDAG::Inserter' [-Wdangling-pointer=] 518 | void setFlagInserter(FlagInserter *FI) { Inserter = FI; } | ~~~~~~~~~^~~~ -
/build/llvm-src-22.1.8/llvm/unittests/ADT/CountCopyAndMove.h:34:58: warning: '<unnamed>.._anon_200::__Counter.llvm::CountCopyAndMove::val' is used uninitialized [-Wuninitialized] 34 | CountCopyAndMove(CountCopyAndMove &&other) : val(other.val) { | ~~~~~~^~~ -
/build/llvm-src-22.1.8/third-party/unittest/googletest/include/gtest/gtest.h:1457:28: warning: comparison between two arrays [-Warray-compare] 1457 | GTEST_IMPL_CMP_HELPER_(NE, !=) | ^ -
/build/llvm-src-22.1.8/llvm/include/llvm/ADT/APInt.h:193:18: warning: 'void operator delete [](void*)' called on a pointer to an unallocated object '3' [-Wfree-nonheap-object] 193 | delete[] U.pVal; | ^~~~ -
/nix/store/wqqb6mbnrnm380adc0ry5hdm449xix4f-gcc-15.3.0/include/c++/15.3.0/bits/move.h:236:11: warning: 'DstResources' is used uninitialized [-Wuninitialized] 236 | __a = _GLIBCXX_MOVE(__b); | ^ -
/build/llvm-src-22.1.8/llvm/unittests/Option/OptionParsingTest.cpp:258:20: warning: moving 'AL' of type 'llvm::opt::InputArgList' to itself [-Wself-move] 258 | AL = std::move(AL); | ^