[Mlir-commits] [mlir] ea7be7e - [MLIR][PDL] Fix C++20 build. concept is a new keyword. NFC.

Benjamin Kramer llvmlistbot at llvm.org
Mon Feb 21 09:39:38 PST 2022


Author: Benjamin Kramer
Date: 2022-02-21T18:37:19+01:00
New Revision: ea7be7e32d9f43e59dad9a7ef020feb0f0168125

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

LOG: [MLIR][PDL] Fix C++20 build. concept is a new keyword. NFC.

Added: 
    

Modified: 
    mlir/lib/Rewrite/ByteCode.cpp

Removed: 
    


################################################################################
diff  --git a/mlir/lib/Rewrite/ByteCode.cpp b/mlir/lib/Rewrite/ByteCode.cpp
index d6a07f9067fe4..c8bc206268a94 100644
--- a/mlir/lib/Rewrite/ByteCode.cpp
+++ b/mlir/lib/Rewrite/ByteCode.cpp
@@ -1542,12 +1542,12 @@ void ByteCodeExecutor::executeCreateOperation(PatternRewriter &rewriter,
     }
 
     // Handle the case where the operation has inferred types.
-    InferTypeOpInterface::Concept *concept =
+    InferTypeOpInterface::Concept *inferInterface =
         state.name.getRegisteredInfo()->getInterface<InferTypeOpInterface>();
 
     // TODO: Handle failure.
     state.types.clear();
-    if (failed(concept->inferReturnTypes(
+    if (failed(inferInterface->inferReturnTypes(
             state.getContext(), state.location, state.operands,
             state.attributes.getDictionary(state.getContext()), state.regions,
             state.types)))


        


More information about the Mlir-commits mailing list