From 62e907e9f9e3c1762e6ce1f24f98f4b0ddc82353 Mon Sep 17 00:00:00 2001 From: Valentin Clement Date: Wed, 29 Jun 2022 05:46:19 -0700 Subject: [PATCH] [Flang] fix some types in error message --- flang/lib/Optimizer/Builder/Runtime/Numeric.cpp | 10 +++++----- flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/flang/lib/Optimizer/Builder/Runtime/Numeric.cpp b/flang/lib/Optimizer/Builder/Runtime/Numeric.cpp index f8f88a8..69b1cfd 100644 --- a/flang/lib/Optimizer/Builder/Runtime/Numeric.cpp +++ b/flang/lib/Optimizer/Builder/Runtime/Numeric.cpp @@ -236,7 +236,7 @@ mlir::Value fir::runtime::genExponent(fir::FirOpBuilder &builder, else if (resultType.isInteger(64)) func = fir::runtime::getRuntimeFunc(loc, builder); } else - fir::emitFatalError(loc, "unsupported REAL KIND in EXPONENT"); + fir::emitFatalError(loc, "unsupported REAL kind in EXPONENT"); auto funcTy = func.getFunctionType(); llvm::SmallVector args = { @@ -261,7 +261,7 @@ mlir::Value fir::runtime::genFraction(fir::FirOpBuilder &builder, else if (fltTy.isF128()) func = fir::runtime::getRuntimeFunc(loc, builder); else - fir::emitFatalError(loc, "unsupported real kind in FRACTION"); + fir::emitFatalError(loc, "unsupported REAL kind in FRACTION"); auto funcTy = func.getFunctionType(); llvm::SmallVector args = { @@ -325,7 +325,7 @@ mlir::Value fir::runtime::genRRSpacing(fir::FirOpBuilder &builder, else if (fltTy.isF128()) func = fir::runtime::getRuntimeFunc(loc, builder); else - fir::emitFatalError(loc, "unsupported real kind in RRSPACING"); + fir::emitFatalError(loc, "unsupported REAL kind in RRSPACING"); auto funcTy = func.getFunctionType(); llvm::SmallVector args = { @@ -378,7 +378,7 @@ mlir::Value fir::runtime::genSetExponent(fir::FirOpBuilder &builder, else if (fltTy.isF128()) func = fir::runtime::getRuntimeFunc(loc, builder); else - fir::emitFatalError(loc, "unsupported real kind in FRACTION"); + fir::emitFatalError(loc, "unsupported REAL kind in FRACTION"); auto funcTy = func.getFunctionType(); auto args = fir::runtime::createArguments(builder, loc, funcTy, x, i); @@ -403,7 +403,7 @@ mlir::Value fir::runtime::genSpacing(fir::FirOpBuilder &builder, else if (fltTy.isF128()) func = fir::runtime::getRuntimeFunc(loc, builder); else - fir::emitFatalError(loc, "unsupported real kind in SPACING"); + fir::emitFatalError(loc, "unsupported REAL kind in SPACING"); auto funcTy = func.getFunctionType(); llvm::SmallVector args = { diff --git a/flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp b/flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp index 8c3a5fd..0abb9ca 100644 --- a/flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp +++ b/flang/lib/Optimizer/CodeGen/PreCGRewrite.cpp @@ -261,7 +261,6 @@ public: class CodeGenRewrite : public fir::CodeGenRewriteBase { public: void runOn(mlir::Operation *op, mlir::Region ®ion) { - // auto op = getOperation(); auto &context = getContext(); mlir::OpBuilder rewriter(&context); mlir::ConversionTarget target(context); -- 2.7.4