[all-commits] [llvm/llvm-project] 6dfe8e: [profile] Second speculative fix for Windows
Vedant Kumar via All-commits
all-commits at lists.llvm.org
Thu Oct 31 16:26:12 PDT 2019
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 6dfe8e590e1e50e26c80af59971bc206d8c567f6
https://github.com/llvm/llvm-project/commit/6dfe8e590e1e50e26c80af59971bc206d8c567f6
Author: Vedant Kumar <vsk at apple.com>
Date: 2019-10-31 (Thu, 31 Oct 2019)
Changed paths:
M compiler-rt/lib/profile/InstrProfilingWriter.c
Log Message:
-----------
[profile] Second speculative fix for Windows
VLAs in C appear to not work on Windows, so use COMPILER_RT_ALLOCA:
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\profile\InstrProfilingWriter.c(264): error C2057: expected constant expression
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\profile\InstrProfilingWriter.c(264): error C2466: cannot allocate an array of constant size 0
C:\b\slave\sanitizer-windows\llvm-project\compiler-rt\lib\profile\InstrProfilingWriter.c(264): error C2133: 'Zeroes': unknown size
More information about the All-commits
mailing list