[flang-commits] [flang] 502f27e - Trivial change to fix builds
Kiran Chandramohan via flang-commits
flang-commits at lists.llvm.org
Thu Mar 25 02:32:17 PDT 2021
Author: Kiran Chandramohan
Date: 2021-03-25T09:31:54Z
New Revision: 502f27e66fd9fe44cd45ec5acae3e18f15f2d8c6
URL: https://github.com/llvm/llvm-project/commit/502f27e66fd9fe44cd45ec5acae3e18f15f2d8c6
DIFF: https://github.com/llvm/llvm-project/commit/502f27e66fd9fe44cd45ec5acae3e18f15f2d8c6.diff
LOG: Trivial change to fix builds
Pass the context while creating the Patternslist.
Added:
Modified:
flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp
Removed:
################################################################################
diff --git a/flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp b/flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp
index eca417ae49b8b..37c6e43cb7acd 100644
--- a/flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp
+++ b/flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp
@@ -244,7 +244,7 @@ class CodeGenRewrite : public CodeGenRewriteBase<CodeGenRewrite> {
return !(embox.getShape() ||
embox.getType().cast<BoxType>().getEleTy().isa<SequenceType>());
});
- mlir::OwningRewritePatternList patterns;
+ mlir::OwningRewritePatternList patterns(&context);
patterns.insert<EmboxConversion, ArrayCoorConversion, ReboxConversion>(
&context);
if (mlir::failed(
More information about the flang-commits
mailing list