[PATCH] D87641: [DebugInfo] Add assert for variable size when creating fragments.
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 14 16:29:56 PDT 2020
dblaikie added a comment.
I'll leave this one to @aprantl - though I am a bit concerned about whether this should be a verifier error if SROA is going to assume it's an invariant. Some discussion on the bug about whether this SROA code is only reachable for some subset of types that do have sizes, while some other types won't have sizes. (variable length arrays being a fairly fundamental example, since they can't have a known length - but I would worry that SROA might be able to mess with known portions of them, maybe?) I mean, I'm usually all for "throw an assert in, and if it ever fails then we'll have figured out what case we didn't consider earlier", though just a bit hesitant on this at the moment. Probably no big deal, though.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87641/new/
https://reviews.llvm.org/D87641
More information about the llvm-commits
mailing list