[compiler-rt] [hwasan] Fix a copy-paste mistake. (PR #77737)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 10 23:32:43 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Wu Yingcong (yingcong-wu)
<details>
<summary>Changes</summary>
This is clearly a copy-paste mistake, fix it with this patch.
---
Full diff: https://github.com/llvm/llvm-project/pull/77737.diff
1 Files Affected:
- (modified) compiler-rt/lib/hwasan/hwasan_report.cpp (+1-1)
``````````diff
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;
``````````
</details>
https://github.com/llvm/llvm-project/pull/77737
More information about the llvm-commits
mailing list