Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Hi, Julian,
In total there are two errors in this file. Apart from the invocation of removed function "MaybeReexec", this file also misses a header file "sanitizer_common/sanitizer_interface_internal.h".
I have attached the compiler's error message in the following section for your reference.
/llvm-project/compiler-rt/lib/tsan/rtl-old/tsan_rtl.cpp:212:12: warning: variable 'i' set but not used [-Wunused-but-set-variable]
for (int i = 0; ^
/llvm-project/compiler-rt/lib/tsan/rtl-old/tsan_rtl.cpp:419:3: error: use of undeclared identifier 'MaybeReexec'
MaybeReexec(); ^
/llvm-project/compiler-rt/lib/tsan/rtl-old/tsan_rtl.cpp:437:3: error: use of undeclared identifier '__sanitizer_set_report_path'
__sanitizer_set_report_path(common_flags()->log_path);
H @lechenyu, thanks for helping out! :)
this file also misses a header file "sanitizer_common/sanitizer_interface_internal.h".
This probably means that rtl-old is unused / bit rotting in more than one way. AFAIK, I didn't add this dependency in D129157.
I still added the #include, but it probably means we should remove rtl-old sooner than later.
I am sorry I forget to send you the confirmation. I have tested this patch last week and it did fix the issue.