diff --git a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp --- a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp +++ b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp @@ -208,8 +208,9 @@ // Dispatch to the correct method based on derived node type. TypeSwitch(&node) - .Case( - [&](auto *derivedNode) { generate(derivedNode, currentBlock, val); }) + .Case([&](auto *derivedNode) { + this->generate(derivedNode, currentBlock, val); + }) .Case([&](SuccessNode *successNode) { generate(successNode, currentBlock); });