diff options
author | Dan Liew <dan@su-root.co.uk> | 2018-12-21 21:41:31 +0000 |
---|---|---|
committer | Dan Liew <dan@su-root.co.uk> | 2018-12-21 21:41:31 +0000 |
commit | 09f6d778407d16cdf99b7c78b4386c2b3c415a76 (patch) | |
tree | 350128e8ab8eade6daba4d496c022122005cc996 /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 47a6129e2682648a8450ed05edcfffb68cd9038f (diff) | |
download | llvm-09f6d778407d16cdf99b7c78b4386c2b3c415a76.zip llvm-09f6d778407d16cdf99b7c78b4386c2b3c415a76.tar.gz llvm-09f6d778407d16cdf99b7c78b4386c2b3c415a76.tar.bz2 |
Fix `static_assert()` scope in `SizeClassAllocator32`.
It should be at the class scope and not inside the `Init(...)` function
because we want to error out as soon as the wrong type is constructed.
At the function scope the `static_assert` is only checked if the
function might be called.
This is a follow up to r349138.
rdar://problem/45284065
llvm-svn: 349959
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions