From 9474df4a1273601606018ae788a165e703253ed3 Mon Sep 17 00:00:00 2001 From: Rahul Joshi Date: Mon, 3 Aug 2020 16:04:39 -0700 Subject: [PATCH] [MLIR][NFC] Adopt SymbolTable::UseRange::empty() PiperOrigin-RevId: 324703092 Change-Id: Ieb4303522df0215cc2df2461e56dcfe25b3d834a --- tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc b/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc index 7a791afb24d..abff4c21cf1 100644 --- a/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc +++ b/tensorflow/compiler/mlir/tensorflow/ir/tf_ops.cc @@ -113,7 +113,7 @@ bool HasSingleUse(FuncOp func) { // If no uses in this scope, continue looking in parent module SymbolTable::UseRange func_uses = func_uses_optional.getValue(); - if (llvm::empty(func_uses)) continue; + if (func_uses.empty()) continue; // Check if multiple uses at this scope or another use already seen. if (!llvm::hasSingleElement(func_uses) || use_seen) return false;