diff --git a/flang/lib/Semantics/expression.cpp b/flang/lib/Semantics/expression.cpp index 367414a2b4465..eead0f4787f92 100644 --- a/flang/lib/Semantics/expression.cpp +++ b/flang/lib/Semantics/expression.cpp @@ -3750,7 +3750,7 @@ bool ExpressionAnalyzer::CheckIntrinsicKind( return true; } else if (foldingContext_.targetCharacteristics().CanSupportType( category, kind)) { - Say("%s(KIND=%jd) is not an enabled type for this targe"_warn_en_US, + Say("%s(KIND=%jd) is not an enabled type for this target"_warn_en_US, ToUpperCase(EnumToString(category)), kind); return true; } else {