From 2bdf33cc4c733342fc83081bc7410ac5e9a24f55 Mon Sep 17 00:00:00 2001 From: River Riddle Date: Sat, 11 Jan 2020 08:54:04 -0800 Subject: [mlir] NFC: Remove Value::operator* and Value::operator-> now that Value is properly value-typed. Summary: These were temporary methods used to simplify the transition. Reviewed By: antiagainst Differential Revision: https://reviews.llvm.org/D72548 --- mlir/lib/IR/Builders.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mlir/lib/IR/Builders.cpp') diff --git a/mlir/lib/IR/Builders.cpp b/mlir/lib/IR/Builders.cpp index 5567f873b5e..0c72abf9a5e 100644 --- a/mlir/lib/IR/Builders.cpp +++ b/mlir/lib/IR/Builders.cpp @@ -377,7 +377,7 @@ LogicalResult OpBuilder::tryFold(Operation *op, // Ask the dialect to materialize a constant operation for this value. Attribute attr = it.value().get(); auto *constOp = dialect->materializeConstant( - cstBuilder, attr, op->getResult(it.index())->getType(), op->getLoc()); + cstBuilder, attr, op->getResult(it.index()).getType(), op->getLoc()); if (!constOp) { // Erase any generated constants. for (Operation *cst : generatedConstants) -- cgit v1.2.3