rsmith added inline comments.
================
Comment at: clang/lib/AST/ExprConstant.cpp:6233
+ assert(RD->hasDefinition());
+ RD->getDefinition();
if (RD->getNumVBases()) {
----------------
I think it would make sense to use the definition of the class as `RD` here,
since we're going to be iterating through `RD`'s fields.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142384/new/
https://reviews.llvm.org/D142384
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits