[compiler-rt] [compiler-rt] Move `endif` to correct place (PR #100342)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 24 03:44:35 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Dmitry Chestnykh (chestnykh)
<details>
<summary>Changes</summary>
A couple of previous commits leaded to wrong endif placement inside the source that caused build problem in
https://lab.llvm.org/buildbot/#/builders/13/builds/1020
See #<!-- -->99613 #<!-- -->99049
---
Full diff: https://github.com/llvm/llvm-project/pull/100342.diff
1 Files Affected:
- (modified) compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp (+1-1)
``````````diff
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
index bc2cb247f2a8a..afb6693017740 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -2239,6 +2239,7 @@ static const char *RegNumToRegName(int reg) {
# endif
default:
return NULL;
+#endif
}
return NULL;
}
@@ -2302,7 +2303,6 @@ static void DumpSingleReg(ucontext_t *ctx, int RegNum) {
(void)RegName;
# endif
}
-# endif
void SignalContext::DumpAllRegisters(void *context) {
ucontext_t *ucontext = (ucontext_t *)context;
``````````
</details>
https://github.com/llvm/llvm-project/pull/100342
More information about the llvm-commits
mailing list