Skip to content

Commit a997d45

Browse files
committed
[NFC][Asan] Remove volatile from test
After #155447. It's not needed, but does not compile on PowerPC.
1 parent 6bccd96 commit a997d45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/asan/tests/asan_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ TEST(AddressSanitizer, ReallocTest) {
395395
}
396396
free(ptr);
397397
// Realloc pointer returned by malloc(0).
398-
volatile void *ptr0 = malloc(0);
398+
void *ptr0 = malloc(0);
399399
int *ptr2 = Ident((int *)ptr0);
400400
ptr2 = Ident((int*)realloc(ptr2, sizeof(*ptr2)));
401401
*ptr2 = 42;

0 commit comments

Comments
 (0)