[PATCH] D132918: [clang] Fix a crash in constant evaluation
Erich Keane via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 30 08:51:35 PDT 2022
erichkeane added inline comments.
================
Comment at: clang/lib/AST/ExprConstant.cpp:4797
}
+ // Can't access properties of an incomplete type.
+ if (!RD->hasDefinition()) {
----------------
It seems to me that we shouldn't GET to this function with an incomplete type. I suspect whoever calls this is doing so incorrectly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D132918/new/
https://reviews.llvm.org/D132918
More information about the cfe-commits
mailing list