[Mlir-commits] [mlir] a19e163 - Fixed broken build under GCC 5.4.

Uday Bondhugula llvmlistbot at llvm.org
Fri Nov 26 19:34:12 PST 2021


Author: Stanislav Funiak
Date: 2021-11-27T09:03:27+05:30
New Revision: a19e16352610000eae758f9aa930069540f4452f

URL: https://github.com/llvm/llvm-project/commit/a19e16352610000eae758f9aa930069540f4452f
DIFF: https://github.com/llvm/llvm-project/commit/a19e16352610000eae758f9aa930069540f4452f.diff

LOG: Fixed broken build under GCC 5.4.

This diff fixes broken build caused by D108550. Under GCC 5, auto lambdas that capture this require `this->` for member calls.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D114659

Added: 
    

Modified: 
    mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
index f6dfa29a2dd78..d69c24e6a33ad 100644
--- a/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
+++ b/mlir/lib/Conversion/PDLToPDLInterp/PDLToPDLInterp.cpp
@@ -208,8 +208,9 @@ Block *PatternLowering::generateMatcher(MatcherNode &node, Region &region) {
 
   // Dispatch to the correct method based on derived node type.
   TypeSwitch<MatcherNode *>(&node)
-      .Case<BoolNode, SwitchNode>(
-          [&](auto *derivedNode) { generate(derivedNode, currentBlock, val); })
+      .Case<BoolNode, SwitchNode>([&](auto *derivedNode) {
+        this->generate(derivedNode, currentBlock, val);
+      })
       .Case([&](SuccessNode *successNode) {
         generate(successNode, currentBlock);
       });


        


More information about the Mlir-commits mailing list