[PATCH] D77834: [flang] Fix for bug 45487
Eric Schweitz via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 9 19:03:12 PDT 2020
schweitz updated this revision to Diff 256474.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D77834/new/
https://reviews.llvm.org/D77834
Files:
flang/include/flang/Optimizer/Dialect/FIROps.td
flang/test/Fir/fir-ops.fir
Index: flang/test/Fir/fir-ops.fir
===================================================================
--- flang/test/Fir/fir-ops.fir
+++ flang/test/Fir/fir-ops.fir
@@ -2,7 +2,6 @@
// RUN: tco -emit-fir %s | tco -emit-fir | FileCheck %s
// UNSUPPORTED: !fir
-// XFAIL: *
// CHECK-LABEL: func @it1() -> !fir.int<4>
func @it1() -> !fir.int<4>
Index: flang/include/flang/Optimizer/Dialect/FIROps.td
===================================================================
--- flang/include/flang/Optimizer/Dialect/FIROps.td
+++ flang/include/flang/Optimizer/Dialect/FIROps.td
@@ -2467,8 +2467,6 @@
TypeAttr:$type
);
- let results = (outs fir_ReferenceType:$resultType);
-
let regions = (region AtMostRegion<1>:$region);
let parser = [{
@@ -2508,9 +2506,6 @@
return failure();
}
- auto refTy = AllocaOp::wrapResultType(globalType);
- if (parser.addTypeToList(refTy, result.types))
- return failure();
return success();
}];
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77834.256474.patch
Type: text/x-patch
Size: 977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200410/62435329/attachment.bin>
More information about the llvm-commits
mailing list