mirror of
https://github.com/verilator/verilator.git
synced 2026-10-08 02:53:12 +02:00
Fix C++20 compilation errors (#4670)
This commit is contained in:
+1
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user