Fix C++20 compilation errors (#4670)

This commit is contained in:
Wilson Snyder
2023-11-06 07:13:31 -05:00
committed by GitHub
parent 27102ea0fb
commit dc10118d3b
11 changed files with 118 additions and 109 deletions
+1 -1
View File
@@ -1126,7 +1126,7 @@ private:
// commonly appears after V3Expand and the simplification in matchMaskedOr. Similarly,
// drop redundant masking of left shift result. E.g.: 0xff000000 & ((uint32_t)a << 24).
const auto checkMask = [=](const V3Number& mask) -> bool {
const auto checkMask = [nodep, this](const V3Number& mask) -> bool {
const AstConst* const constp = VN_AS(nodep->lhsp(), Const);
if (constp->num().isCaseEq(mask)) {
AstNode* const rhsp = nodep->rhsp();