summaryrefslogtreecommitdiffstats
path: root/mlir/unittests/IR/OperationSupportTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mlir/unittests/IR/OperationSupportTest.cpp')
-rw-r--r--mlir/unittests/IR/OperationSupportTest.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/mlir/unittests/IR/OperationSupportTest.cpp b/mlir/unittests/IR/OperationSupportTest.cpp
index 80f82ac3e5d..d7dae4648fe 100644
--- a/mlir/unittests/IR/OperationSupportTest.cpp
+++ b/mlir/unittests/IR/OperationSupportTest.cpp
@@ -25,7 +25,7 @@ using namespace mlir::detail;
namespace {
Operation *createOp(MLIRContext *context, bool resizableOperands,
- ArrayRef<Value *> operands = llvm::None,
+ ArrayRef<ValuePtr> operands = llvm::None,
ArrayRef<Type> resultTypes = llvm::None) {
return Operation::create(
UnknownLoc::get(context), OperationName("foo.bar", context), resultTypes,
@@ -39,7 +39,7 @@ TEST(OperandStorageTest, NonResizable) {
Operation *useOp =
createOp(&context, /*resizableOperands=*/false, /*operands=*/llvm::None,
builder.getIntegerType(16));
- Value *operand = useOp->getResult(0);
+ ValuePtr operand = useOp->getResult(0);
// Create a non-resizable operation with one operand.
Operation *user = createOp(&context, /*resizableOperands=*/false, operand,
@@ -68,7 +68,7 @@ TEST(OperandStorageDeathTest, AddToNonResizable) {
Operation *useOp =
createOp(&context, /*resizableOperands=*/false, /*operands=*/llvm::None,
builder.getIntegerType(16));
- Value *operand = useOp->getResult(0);
+ ValuePtr operand = useOp->getResult(0);
// Create a non-resizable operation with one operand.
Operation *user = createOp(&context, /*resizableOperands=*/false, operand,
@@ -88,7 +88,7 @@ TEST(OperandStorageTest, Resizable) {
Operation *useOp =
createOp(&context, /*resizableOperands=*/false, /*operands=*/llvm::None,
builder.getIntegerType(16));
- Value *operand = useOp->getResult(0);
+ ValuePtr operand = useOp->getResult(0);
// Create a resizable operation with one operand.
Operation *user = createOp(&context, /*resizableOperands=*/true, operand,
OpenPOWER on IntegriCloud