From a4c3a6455c404ef4e56a73be9457affb53536873 Mon Sep 17 00:00:00 2001 From: River Riddle Date: Tue, 25 Jun 2019 21:31:54 -0700 Subject: Move the emitError/Warning/Remark utility methods out of MLIRContext and into the mlir namespace. Now that Locations are attributes, they have direct access to the MLIR context. This allows for simplifying error emission by removing unnecessary context lookups. PiperOrigin-RevId: 255112791 --- mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mlir/lib/Dialect/FxpMathOps/Transforms') diff --git a/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp b/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp index 2a752c2c865..ff198217bb7 100644 --- a/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp +++ b/mlir/lib/Dialect/FxpMathOps/Transforms/LowerUniformRealMath.cpp @@ -52,8 +52,7 @@ static Value *emitUniformPerLayerDequantize(Location loc, Value *input, // Pre-conditions. if (!elementType.isSigned()) { // TODO: Support unsigned storage type. - rewriter.getContext()->emitWarning( - loc, "unimplemented: dequantize signed uniform"); + emitWarning(loc, "unimplemented: dequantize signed uniform"); return nullptr; } -- cgit v1.2.3