Skip to content

Commit dfaa388

Browse files
committed
[flang] Fix wording of warning message
"division on intrinsic call" should read "division by zero on intrinsic call". Differential Revision: https://reviews.llvm.org/D128394
1 parent 466eae6 commit dfaa388

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flang/lib/Evaluate/common.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void RealFlagWarnings(
2222
if (std::strcmp(operation, "division") == 0) {
2323
context.messages().Say("division by zero"_warn_en_US);
2424
} else {
25-
context.messages().Say("division on %s"_warn_en_US, operation);
25+
context.messages().Say("division by zero on %s"_warn_en_US, operation);
2626
}
2727
}
2828
if (flags.test(RealFlag::InvalidArgument)) {

0 commit comments

Comments
 (0)