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/test/lib/Transforms/TestInlining.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mlir/test/lib/Transforms/TestInlining.cpp') diff --git a/mlir/test/lib/Transforms/TestInlining.cpp b/mlir/test/lib/Transforms/TestInlining.cpp index 584849d0f51..fd36df4f29b 100644 --- a/mlir/test/lib/Transforms/TestInlining.cpp +++ b/mlir/test/lib/Transforms/TestInlining.cpp @@ -37,7 +37,7 @@ struct Inliner : public FunctionPass { // Try to inline each of the call operations. for (auto caller : callers) { auto callee = dyn_cast_or_null( - caller.getCallee()->getDefiningOp()); + caller.getCallee().getDefiningOp()); if (!callee) continue; @@ -47,7 +47,7 @@ struct Inliner : public FunctionPass { interface, &callee.body(), caller, llvm::to_vector<8>(caller.getArgOperands()), SmallVector(caller.getResults()), caller.getLoc(), - /*shouldCloneInlinedRegion=*/!callee.getResult()->hasOneUse()))) + /*shouldCloneInlinedRegion=*/!callee.getResult().hasOneUse()))) continue; // If the inlining was successful then erase the call and callee if -- cgit v1.2.3