[compiler-rt] [NFC] fix incorrect #endif comment (PR #95991)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Thu Jun 20 13:31:48 PDT 2024
https://github.com/fmayer updated https://github.com/llvm/llvm-project/pull/95991
>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 1/2] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20in?=
=?UTF-8?q?itial=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) {
>From 7c730d67945b7782e844e4ec8a510d9a51c4aac2 Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Thu, 20 Jun 2024 13:31:32 -0700
Subject: [PATCH 2/2] address cmty
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 2c8681d99a1bd..bf2002b6b3de6 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_FREEBSD || SANITIZER_NETBSD
+# endif
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 // SANITIZER_SOLARIS
+# endif
}
uptr ReadLongProcessName(/*out*/ char *buf, uptr buf_len) {
More information about the llvm-commits
mailing list