Index: test/profile/Inputs/instrprof-merge-match.c =================================================================== --- test/profile/Inputs/instrprof-merge-match.c +++ test/profile/Inputs/instrprof-merge-match.c @@ -20,7 +20,7 @@ int main(int argc, const char *argv[]) { const uint64_t MaxSize = 10000; - static char Buffer[MaxSize]; + static char Buffer[MaxSize] __attribute__((aligned(sizeof(uint64_t)))); uint64_t Size = __llvm_profile_get_size_for_buffer(); if (Size > MaxSize) Index: test/profile/instrprof-merge.c =================================================================== --- test/profile/instrprof-merge.c +++ test/profile/instrprof-merge.c @@ -41,7 +41,7 @@ return 1; const uint64_t MaxSize = 10000; - static char Buffer[MaxSize]; + static char Buffer[MaxSize] __attribute__((aligned(sizeof(uint64_t)))); uint64_t Size = __llvm_profile_get_size_for_buffer(); if (Size > MaxSize)