[compiler-rt] [hwasan] Fix a copy-paste mistake. (PR #77737)

Wu Yingcong via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 23:31:29 PST 2024


https://github.com/yingcong-wu created https://github.com/llvm/llvm-project/pull/77737

This is clearly a copy-paste mistake, fix it with this patch.

>From 1423dc096e1e65c04615af9352049126912086be Mon Sep 17 00:00:00 2001
From: Wu Yingcong <yingcong.wu at intel.com>
Date: Thu, 11 Jan 2024 15:30:18 +0800
Subject: [PATCH] Fix a copy-paste mistake.

---
 compiler-rt/lib/hwasan/hwasan_report.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/compiler-rt/lib/hwasan/hwasan_report.cpp b/compiler-rt/lib/hwasan/hwasan_report.cpp
index 784cfb904aa275..12a4fa47f21519 100644
--- a/compiler-rt/lib/hwasan/hwasan_report.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_report.cpp
@@ -222,7 +222,7 @@ static void PrintStackAllocations(const StackAllocationsRingBuffer *sa,
         if (!local.has_frame_offset || !local.has_size || !local.has_tag_offset)
           continue;
         if (!(local.name && internal_strlen(local.name)) &&
-            !(local.function_name && internal_strlen(local.name)) &&
+            !(local.function_name && internal_strlen(local.function_name)) &&
             !(local.decl_file && internal_strlen(local.decl_file)))
           continue;
         tag_t obj_tag = base_tag ^ local.tag_offset;



More information about the llvm-commits mailing list