[compiler-rt] [tsan][riscv] add Go race detector support for RISC-V sv39 VMA (PR #154701)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 23 21:01:14 PDT 2025
fmayer wrote:
> ⚠️ C/C++ code formatter, clang-format found issues in your code. ⚠️
>
> You can test this locally with the following command:
> ```shell
> git-clang-format --diff HEAD~1 HEAD --extensions c,h,cpp -- compiler-rt/lib/tsan/go/test.c compiler-rt/lib/tsan/rtl/tsan_platform.h compiler-rt/lib/tsan/rtl/tsan_platform_linux.cpp
> ```
>
> View the diff from clang-format here.
> ```diff
> diff --git a/compiler-rt/lib/tsan/rtl/tsan_platform.h b/compiler-rt/lib/tsan/rtl/tsan_platform.h
> index 1057e9d97..6c14537d2 100644
> --- a/compiler-rt/lib/tsan/rtl/tsan_platform.h
> +++ b/compiler-rt/lib/tsan/rtl/tsan_platform.h
> @@ -787,7 +787,7 @@ ALWAYS_INLINE auto SelectMapping(Arg arg) {
> return Func::template Apply<MappingGoRiscv64_39>(arg);
> case 48:
> return Func::template Apply<MappingGoRiscv64_48>(arg);
> - }
> + }
> # elif SANITIZER_WINDOWS
> return Func::template Apply<MappingGoWindows>(arg);
> # else
> ```
Please fix
https://github.com/llvm/llvm-project/pull/154701
More information about the llvm-commits
mailing list