From fb798aa80dd71c92d3a6a8de3bfad7ea518f700d Mon Sep 17 00:00:00 2001 From: Luca Sarti Date: Mon, 14 Apr 2025 15:53:34 +0000 Subject: [PATCH] Passing signedness when creating unsigned integer for the storageType in type parser --- mlir/lib/Dialect/Quant/IR/TypeParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlir/lib/Dialect/Quant/IR/TypeParser.cpp b/mlir/lib/Dialect/Quant/IR/TypeParser.cpp index 1fd148dd4736..40510e6e2387 100644 --- a/mlir/lib/Dialect/Quant/IR/TypeParser.cpp +++ b/mlir/lib/Dialect/Quant/IR/TypeParser.cpp @@ -51,7 +51,7 @@ static Type parseStorageType(DialectAsmParser &parser, bool &isSigned) { return nullptr; } isSigned = false; - type = parser.getBuilder().getIntegerType(storageTypeWidth); + type = parser.getBuilder().getIntegerType(storageTypeWidth, isSigned); } else { parser.emitError(typeLoc, "illegal quantized storage type alias");