summaryrefslogtreecommitdiff
path: root/flang/unittests
diff options
context:
space:
mode:
authorJean Perier <jperier@nvidia.com>2022-12-15 11:13:54 +0100
committerJean Perier <jperier@nvidia.com>2022-12-15 11:14:14 +0100
commitb22fa8659ad370b10d357b22f244f88f22673c25 (patch)
tree1fb5bc68a05ac4bd4bec1ed39b850fd0ce7cb329 /flang/unittests
parent7d0429bf546e3dc6cf02ccfdbd45a3ab4d5da12f (diff)
downloadllvm-b22fa8659ad370b10d357b22f244f88f22673c25.tar.gz
[flang][NFC] add builder to simplify fir.shape creation
Differential Revision: https://reviews.llvm.org/D140031
Diffstat (limited to 'flang/unittests')
-rw-r--r--flang/unittests/Optimizer/FortranVariableTest.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/flang/unittests/Optimizer/FortranVariableTest.cpp b/flang/unittests/Optimizer/FortranVariableTest.cpp
index 45262239d616..42ed2257f580 100644
--- a/flang/unittests/Optimizer/FortranVariableTest.cpp
+++ b/flang/unittests/Optimizer/FortranVariableTest.cpp
@@ -36,8 +36,7 @@ public:
}
mlir::Value createShape(llvm::ArrayRef<mlir::Value> extents) {
- mlir::Type shapeType = fir::ShapeType::get(&context, extents.size());
- return builder->create<fir::ShapeOp>(getLoc(), shapeType, extents);
+ return builder->create<fir::ShapeOp>(getLoc(), extents);
}
mlir::MLIRContext context;
std::unique_ptr<mlir::OpBuilder> builder;