diff --git a/mlir/include/mlir/IR/DialectImplementation.h b/mlir/include/mlir/IR/DialectImplementation.h --- a/mlir/include/mlir/IR/DialectImplementation.h +++ b/mlir/include/mlir/IR/DialectImplementation.h @@ -87,7 +87,7 @@ struct FieldParser::value, IntT>> { static FailureOr parse(AsmParser &parser) { - IntT value; + IntT value = 0; if (parser.parseInteger(value)) return failure(); return value;