Skip to content

Commit cacf9f2

Browse files
committed
clang-format
1 parent 39a5ab9 commit cacf9f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler-rt/test/msan/print_faulting_inst.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include <stdio.h>
3939
#include <stdlib.h>
4040

41-
#define THRICE(o,t) twice(o,t)
41+
#define THRICE(o, t) twice(o, t)
4242

4343
__attribute__((noinline)) extern "C" int twice(int o, int t) {
4444
return o + t < 3;
@@ -57,7 +57,8 @@ int main(int argc, char *argv[]) {
5757
int index = atoi(argv[1]);
5858
int val = buf[index];
5959

60-
printf("index %d, abs(val) %d, THRICE(val,5) %d\n", index, abs(val), THRICE(val,5));
60+
printf("index %d, abs(val) %d, THRICE(val,5) %d\n", index, abs(val),
61+
THRICE(val, 5));
6162
// VERY-VERBOSE-PARAM-CHECK: Instruction that failed the shadow check: %{{.*}} = call noundef i32 @twice(i32 noundef %{{.*}}, i32 noundef 5)
6263
// VERBOSE-PARAM-CHECK: Instruction that failed the shadow check: call twice
6364
// PARAM-CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value
@@ -73,7 +74,7 @@ int main(int argc, char *argv[]) {
7374
printf("Variable is zero\n");
7475

7576
int nextval = buf[index + 1];
76-
buf[nextval + abs(index)] = twice(index,6);
77+
buf[nextval + abs(index)] = twice(index, 6);
7778
// VERY-VERBOSE-STORE-CHECK: Instruction that failed the shadow check: store i32 %{{.*}}, ptr %{{.*}}
7879
// VERBOSE-STORE-CHECK: Instruction that failed the shadow check: store
7980
// STORE-CHECK: WARNING: MemorySanitizer: use-of-uninitialized-value

0 commit comments

Comments
 (0)