diff options
| -rw-r--r-- | compiler-rt/lib/profile/InstrProfilingWriter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/profile/InstrProfilingWriter.c b/compiler-rt/lib/profile/InstrProfilingWriter.c index ae9e1fa6ac1..0b2e17612ab 100644 --- a/compiler-rt/lib/profile/InstrProfilingWriter.c +++ b/compiler-rt/lib/profile/InstrProfilingWriter.c @@ -261,7 +261,7 @@ lprofWriteDataImpl(ProfDataWriter *Writer, const __llvm_profile_data *DataBegin, /* Enough zeroes for padding. */ unsigned PageSize = getpagesize(); - char Zeroes[PageSize]; + char *Zeroes = (char *)COMPILER_RT_ALLOCA(PageSize); memset(Zeroes, 0, PageSize); /* Create the header. */ |

