[PATCH] D76526: Add an algorithm for performing "optimal" layout of a struct.
Ayke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Apr 10 15:24:13 PDT 2021
aykevl added inline comments.
Herald added a subscriber: lxfind.
================
Comment at: llvm/include/llvm/Support/OptimalLayout.h:40
+ : Offset(FixedOffset), Size(Size), Id(Id), Alignment(Alignment) {
+ assert(Size > 0 && "adding an empty field to the layout");
+ }
----------------
This line is triggered in the coroutine lowering passes, see: https://bugs.llvm.org/show_bug.cgi?id=49916
I don't know whether this is a bug in OptimizedStructLayout or in the coroutine lowering passes, but I'm noting it here just in case.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76526/new/
https://reviews.llvm.org/D76526
More information about the llvm-commits
mailing list