[PATCH] D77834: [flang] Fix for bug 45487

Eric Schweitz via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 14 10:11:43 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGd58a405de656: [flang] Upstream patch to enable the fir-ops test. bug 45487 (authored by schweitz).

Repository:
  rG LLVM Github Monorepo

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.257396.patch
Type: text/x-patch
Size: 977 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200414/fc5dd623/attachment.bin>


More information about the llvm-commits mailing list