[compiler-rt] [NFC] fix incorrect #endif comment (PR #95991)

Florian Mayer via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 14:08:08 PDT 2024


https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/95991

None

>From 622a6e0b22dca9aa42c5d8a69877bf236bfed4cb Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Tue, 18 Jun 2024 14:07:55 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.4
---
 compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
index d15caa76efb06..2c8681d99a1bd 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -1180,7 +1180,7 @@ uptr ReadBinaryName(/*out*/ char *buf, uptr buf_len) {
   uptr module_name_len = internal_readlink(default_module_name, buf, buf_len);
   int readlink_error;
   bool IsErr = internal_iserror(module_name_len, &readlink_error);
-#    endif  // SANITIZER_SOLARIS
+#    endif  // SANITIZER_FREEBSD || SANITIZER_NETBSD
   if (IsErr) {
     // We can't read binary name for some reason, assume it's unknown.
     Report(
@@ -1192,7 +1192,7 @@ uptr ReadBinaryName(/*out*/ char *buf, uptr buf_len) {
     CHECK_LT(module_name_len, buf_len);
   }
   return module_name_len;
-#  endif
+#  endif    // SANITIZER_SOLARIS
 }
 
 uptr ReadLongProcessName(/*out*/ char *buf, uptr buf_len) {



More information about the llvm-commits mailing list