[compiler-rt] [NFC] fix incorrect #endif comment (PR #95991)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 18 14:08:44 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Florian Mayer (fmayer)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/95991.diff
1 Files Affected:
- (modified) compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp (+2-2)
``````````diff
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) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/95991
More information about the llvm-commits
mailing list