[PATCH] D142187: [clang] Fix typos in member initializers
Aaron Ballman via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 20 05:14:05 PST 2023
aaron.ballman added inline comments.
================
Comment at: clang/lib/Sema/SemaDeclCXX.cpp:4103
+ /*RecoverUncorrectedTypos=*/true);
+ if (!FD->getType()->isDependentType() && !Init.get()->isTypeDependent()) {
+ Init = ConvertMemberDefaultInitExpression(FD, Init.get(), InitLoc);
----------------
Should we be checking for `Init.isUsable()` before calling `.get()`?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142187/new/
https://reviews.llvm.org/D142187
More information about the cfe-commits
mailing list