[compiler-rt] 1c91b1e - [NFC][hwasan] Clang-format c557621176f5f38b5757a325cc72be0a11a91c78
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 19 19:29:29 PDT 2023
Author: Vitaly Buka
Date: 2023-09-19T19:28:08-07:00
New Revision: 1c91b1ebad6d70ccb68dd4e8a88711627baa484a
URL: https://github.com/llvm/llvm-project/commit/1c91b1ebad6d70ccb68dd4e8a88711627baa484a
DIFF: https://github.com/llvm/llvm-project/commit/1c91b1ebad6d70ccb68dd4e8a88711627baa484a.diff
LOG: [NFC][hwasan] Clang-format c557621176f5f38b5757a325cc72be0a11a91c78
Added:
Modified:
compiler-rt/lib/hwasan/hwasan_report.cpp
Removed:
################################################################################
diff --git a/compiler-rt/lib/hwasan/hwasan_report.cpp b/compiler-rt/lib/hwasan/hwasan_report.cpp
index d9a23ad29bc4bc8..969741d8564a0a4 100644
--- a/compiler-rt/lib/hwasan/hwasan_report.cpp
+++ b/compiler-rt/lib/hwasan/hwasan_report.cpp
@@ -474,8 +474,7 @@ BaseReport::OverflowCandidate BaseReport::FindBufferOverflowCandidate() const {
result.is_close = candidate_distance <= kCloseCandidateDistance;
result.after = candidate_tag_ptr == left;
- result.untagged_addr =
- ShadowToMem(reinterpret_cast<uptr>(candidate_tag_ptr));
+ result.untagged_addr = ShadowToMem(reinterpret_cast<uptr>(candidate_tag_ptr));
HwasanChunkView chunk = FindHeapChunkByAddress(result.untagged_addr);
if (chunk.IsAllocated()) {
result.heap.is_allocated = true;
@@ -600,7 +599,8 @@ void BaseReport::PrintAddressDescription() const {
num_descriptions_printed++;
}
- if (!stack_allocations_count && candidate.untagged_addr && candidate.is_close) {
+ if (!stack_allocations_count && candidate.untagged_addr &&
+ candidate.is_close) {
PrintHeapOrGlobalCandidate();
num_descriptions_printed++;
}
More information about the llvm-commits
mailing list