SuccessChanges

Summary

  1. [profile] Speculative fix for Windows after D68351 (details)
  2. [profile] Second speculative fix for Windows (details)
Commit aa7f3a405d112d9fe0084a8b3c4667e265f607ad by Vedant Kumar
[profile] Speculative fix for Windows after D68351
setenv() appears to not be available on Windows:
http://lab.llvm.org:8011/builders/sanitizer-windows/builds/53545/steps/stage%201%20build/logs/stdio
The file was modifiedcompiler-rt/lib/profile/InstrProfilingPort.h
Commit 6dfe8e590e1e50e26c80af59971bc206d8c567f6 by Vedant Kumar
[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
The file was modifiedcompiler-rt/lib/profile/InstrProfilingWriter.c