[Openmp-commits] [openmp] Fix apostrophes in assert error message (PR #69881)

Chris B via Openmp-commits openmp-commits at lists.llvm.org
Wed Nov 8 08:55:13 PST 2023


================
@@ -32,10 +32,10 @@ void __assert_fail(const char *expr, const char *file, unsigned line,
 void __assert_fail_internal(const char *expr, const char *msg, const char *file,
                             unsigned line, const char *function) {
   if (msg) {
-    PRINTF("%s:%u: %s: Assertion %s (`%s') failed.\n", file, line, function,
+    PRINTF("%s:%u: %s: Assertion %s (`%s`) failed.\n", file, line, function,
            msg, expr);
   } else {
-    PRINTF("%s:%u: %s: Assertion `%s' failed.\n", file, line, function, expr);
+    PRINTF("%s:%u: %s: Assertion `%s` failed.\n", file, line, function, expr);
----------------
llvm-beanz wrote:

@jdoerfert doesn't really matter, but did you intend these to be apostrophes(') or grave accents (`)?

https://github.com/llvm/llvm-project/pull/69881


More information about the Openmp-commits mailing list