[llvm-branch-commits] [compiler-rt] format (PR #79009)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Jan 22 08:55:16 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Fangrui Song (MaskRay)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/79009.diff
1 Files Affected:
- (modified) compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp (+4-2)
``````````diff
diff --git a/compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp b/compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp
index bf84ab3d20d7de..0967b34dc7dbfe 100644
--- a/compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp
+++ b/compiler-rt/test/asan/TestCases/alloca_loop_unpoisoning.cpp
@@ -25,12 +25,14 @@ __attribute__((noinline)) void foo(int len) {
char x;
top = &x;
volatile char array[len];
- if (len) array[0] = 0;
+ if (len)
+ array[0] = 0;
assert(!(reinterpret_cast<uintptr_t>(array) & 31L));
alloca(len);
for (int i = 0; i < 32; ++i) {
volatile char array[i];
- if (i) array[0] = 0;
+ if (i)
+ array[0] = 0;
bot = alloca(i);
assert(!(reinterpret_cast<uintptr_t>(bot) & 31L));
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/79009
More information about the llvm-branch-commits
mailing list