[compiler-rt] 31204b4 - [scudo] Make comment compatible with gcc (#106137)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 26 15:29:33 PDT 2024
Author: Caslyn Tonelli
Date: 2024-08-26T15:29:29-07:00
New Revision: 31204b472eccdc59f7aa16f9a539deeb431f6177
URL: https://github.com/llvm/llvm-project/commit/31204b472eccdc59f7aa16f9a539deeb431f6177
DIFF: https://github.com/llvm/llvm-project/commit/31204b472eccdc59f7aa16f9a539deeb431f6177.diff
LOG: [scudo] Make comment compatible with gcc (#106137)
gcc interprets a backslash '\\' as the last char before a new line as a
line continuation character, even in a comment context. This can produce
an "error: multi-line comment [-Werror=comment]".
This PR adds delimiters so that the comment can compile with gcc.
Added:
Modified:
compiler-rt/lib/scudo/standalone/secondary.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/scudo/standalone/secondary.h b/compiler-rt/lib/scudo/standalone/secondary.h
index 985e2392641ae2..fba21c3cb6a09d 100644
--- a/compiler-rt/lib/scudo/standalone/secondary.h
+++ b/compiler-rt/lib/scudo/standalone/secondary.h
@@ -426,7 +426,7 @@ class MapAllocatorCache {
// The
diff erence between the retrieved memory chunk and the request
// size is at most MaxAllowedFragmentedPages
//
- // / MaxAllowedFragmentedPages * PageSize \
+ // +- MaxAllowedFragmentedPages * PageSize -+
// +--------------------------+-------------+
// | | |
// +--------------------------+-------------+
More information about the llvm-commits
mailing list