diff options
author | Tim Northover <tnorthover@apple.com> | 2018-11-01 13:49:54 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2018-11-01 13:49:54 +0000 |
commit | a94ecc619b3eb82144af0ac049676728b84caa77 (patch) | |
tree | 9fe52dac0071b3a19aeab1f378daa9bcadc1ede2 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | 1546efd4a7c1fffe0428ea4f27bf2037eeec4df3 (diff) | |
download | llvm-a94ecc619b3eb82144af0ac049676728b84caa77.zip llvm-a94ecc619b3eb82144af0ac049676728b84caa77.tar.gz llvm-a94ecc619b3eb82144af0ac049676728b84caa77.tar.bz2 |
Logging: make os_log buffer size an integer constant expression.
The size of an os_log buffer is known at any stage of compilation, so making it
a constant expression means that the common idiom of declaring a buffer for it
won't result in a VLA. That allows the compiler to skip saving and restoring
the stack pointer around such buffers.
llvm-svn: 345828
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions