[llvm-bugs] [Bug 48259] New: static assertion failed: Recycler allocation size is less than object size!

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Nov 22 04:48:43 PST 2020


https://bugs.llvm.org/show_bug.cgi?id=48259

            Bug ID: 48259
           Summary: static assertion failed: Recycler allocation size is
                    less than object size!
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: sylvestre at debian.org
                CC: llvm-bugs at lists.llvm.org

recently started to fail on i386, built with gcc 8.
Started to fail after 2020 11 19 changeset 6c1c308c0e1 (excluding)

/SelectionDAGPrinter.cpp.o -c
"/build/llvm-toolchain-snapshot-12~++20201122115112+82c22f12481/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp"
In file included from
/build/llvm-toolchain-snapshot-12~++20201122115112+82c22f12481/llvm/include/llvm/CodeGen/MachineFunction.h:35,
                 from
/build/llvm-toolchain-snapshot-12~++20201122115112+82c22f12481/llvm/include/llvm/CodeGen/SelectionDAG.h:31,
                 from
/build/llvm-toolchain-snapshot-12~++20201122115112+82c22f12481/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:13:
/build/llvm-toolchain-snapshot-12~++20201122115112+82c22f12481/llvm/include/llvm/Support/Recycler.h:
In instantiation of 'SubClass* llvm::Recycler<T, Size,
Align>::Allocate(AllocatorType&) [with SubClass = llvm::PseudoProbeSDNode;
AllocatorType = llvm::BumpPtrAllocatorImpl<>; T = llvm::SDNode; unsigned int
Size = 64; unsigned int Align = 4]':
/build/llvm-toolchain-snapshot-12~++20201122115112+82c22f12481/llvm/include/llvm/Support/RecyclingAllocator.h:43:75:
  required from 'SubClass* llvm::RecyclingAllocator<AllocatorType, T, Size,
Align>::Allocate() [with SubClass = llvm::PseudoProbeSDNode; AllocatorType =
llvm::BumpPtrAllocatorImpl<>; T = llvm::SDNode; unsigned int Size = 64;
unsigned int Align = 4]'
/build/llvm-toolchain-snapshot-12~++20201122115112+82c22f12481/llvm/include/llvm/CodeGen/SelectionDAG.h:380:12:
  required from 'SDNodeT* llvm::SelectionDAG::newSDNode(ArgTypes&& ...) [with
SDNodeT = llvm::PseudoProbeSDNode; ArgTypes = {const unsigned int&, unsigned
int, const llvm::DebugLoc&, const llvm::SDVTList&, long long unsigned int&,
long long unsigned int&, unsigned int&}]'
/build/llvm-toolchain-snapshot-12~++20201122115112+82c22f12481/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp:6906:72:
  required from here
/build/llvm-toolchain-snapshot-12~++20201122115112+82c22f12481/llvm/include/llvm/Support/Recycler.h:86:36:
error: static assertion failed: Recycler allocation size is less than object
size!
     static_assert(sizeof(SubClass) <= Size,
                   ~~~~~~~~~~~~~~~~~^~~~~~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20201122/4ddb72d3/attachment.html>


More information about the llvm-bugs mailing list