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

via Openmp-commits openmp-commits at lists.llvm.org
Sun Oct 22 07:09:47 PDT 2023


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

None

>From b70a819f9706710e337aacfb0165c2d37fe308d3 Mon Sep 17 00:00:00 2001
From: Aqendo <109442154+Aqendo at users.noreply.github.com>
Date: Sun, 22 Oct 2023 17:09:18 +0300
Subject: [PATCH] Fix apostrophes

---
 openmp/libomptarget/DeviceRTL/src/Debug.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/openmp/libomptarget/DeviceRTL/src/Debug.cpp b/openmp/libomptarget/DeviceRTL/src/Debug.cpp
index dd627fc65d8f64d..08edc3c899d7333 100644
--- a/openmp/libomptarget/DeviceRTL/src/Debug.cpp
+++ b/openmp/libomptarget/DeviceRTL/src/Debug.cpp
@@ -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);
   }
   __builtin_trap();
 }



More information about the Openmp-commits mailing list