[clang] [clang][c++20] Fix code coverage mapping crash with generalized NTTPs (PR #85837)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 27 14:16:54 PDT 2024
================
@@ -2177,7 +2177,8 @@ struct CounterCoverageMappingBuilder
}
void VisitOpaqueValueExpr(const OpaqueValueExpr* OVE) {
- Visit(OVE->getSourceExpr());
+ if (const Expr *SE = OVE->getSourceExpr())
----------------
efriedma-quic wrote:
I suspect the correct check here is `if (OVE->isUnique())`? See https://reviews.llvm.org/D39562 . CC @ahatanak.
https://github.com/llvm/llvm-project/pull/85837
More information about the cfe-commits
mailing list