[compiler-rt] [NFC][ASan] Replace calls to Report() and Die() with ReportIncompatibleRT() in AsanCheckIncompatibleRT() (PR #107991)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 10 02:34:05 PDT 2024
https://github.com/Enna1 created https://github.com/llvm/llvm-project/pull/107991
None
>From dd0013c6369f874fe41ea7ade3d3df74212cf64d Mon Sep 17 00:00:00 2001
From: "xumingjie.enna1" <xumingjie.enna1 at bytedance.com>
Date: Tue, 10 Sep 2024 17:32:53 +0800
Subject: [PATCH] [NFC][ASan] Replace calls to Report() and Die() with
ReportIncompatibleRT() in AsanCheckIncompatibleRT()
---
compiler-rt/lib/asan/asan_linux.cpp | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
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