[PATCH] D118119: [clang][dataflow] Add a transfer function for InitListExpr
Gábor Horváth via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Jan 25 03:53:16 PST 2022
xazax.hun added inline comments.
================
Comment at: clang/lib/Analysis/FlowSensitive/Transfer.cpp:421
+ QualType Type = S->getType();
+ assert(Type->isStructureOrClassType());
+
----------------
Why do we expect this assertion to be true? Aren't `InitListExpr`s also used to initialize arrays?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118119/new/
https://reviews.llvm.org/D118119
More information about the cfe-commits
mailing list