Skip to content

Commit 445ddf5

Browse files
vitalybukagithub-actions[bot]
authored andcommitted
Automerge: [NFC][Asan] Remove volatile from test
After #155447. It's not needed, but does not compile on PowerPC.
2 parents 4e3f61b + a997d45 commit 445ddf5

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)