[compiler-rt] 7b3d4e3 - [NFC][ASan] Replace calls to Report() and Die() with ReportIncompatibleRT() in AsanCheckIncompatibleRT() (#107991)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 16 18:52:52 PDT 2024
Author: Enna1
Date: 2024-09-17T09:52:49+08:00
New Revision: 7b3d4e38ddd15b294bd32d34e7f5e194840a4dbd
URL: https://github.com/llvm/llvm-project/commit/7b3d4e38ddd15b294bd32d34e7f5e194840a4dbd
DIFF: https://github.com/llvm/llvm-project/commit/7b3d4e38ddd15b294bd32d34e7f5e194840a4dbd.diff
LOG: [NFC][ASan] Replace calls to Report() and Die() with ReportIncompatibleRT() in AsanCheckIncompatibleRT() (#107991)
Added:
Modified:
compiler-rt/lib/asan/asan_linux.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/asan/asan_linux.cpp b/compiler-rt/lib/asan/asan_linux.cpp
index 0b470db86748fb..4cabca388ca9a1 100644
--- a/compiler-rt/lib/asan/asan_linux.cpp
+++ b/compiler-rt/lib/asan/asan_linux.cpp
@@ -187,10 +187,7 @@ void AsanCheckIncompatibleRT() {
MemoryMappedSegment segment(filename, sizeof(filename));
while (proc_maps.Next(&segment)) {
if (IsDynamicRTName(segment.filename)) {
- Report(
- "Your application is linked against "
- "incompatible ASan runtimes.\n");
- Die();
+ ReportIncompatibleRT();
}
}
__asan_rt_version = ASAN_RT_VERSION_STATIC;
More information about the llvm-commits
mailing list