diff options
author | Aaron Ballman <aaron@aaronballman.com> | 2018-11-28 11:57:13 +0000 |
---|---|---|
committer | Aaron Ballman <aaron@aaronballman.com> | 2018-11-28 11:57:13 +0000 |
commit | dda6290f16075795a5700c29d1b990fff8e1261b (patch) | |
tree | c34f2c4941666153ed851ec12163254d089b8141 /llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | |
parent | af860d44fe5b0146126f296df1fa2e4162b781b6 (diff) | |
download | bcm5719-llvm-dda6290f16075795a5700c29d1b990fff8e1261b.tar.gz bcm5719-llvm-dda6290f16075795a5700c29d1b990fff8e1261b.zip |
Fix a false-positive with cert-err58-cpp.
If a variable is declared constexpr then its initializer needs to be a constant expression, and thus, cannot throw. This check is about not throwing exceptions before main() runs, and so it doesn't apply if the initializer cannot throw. This silences the diagnostic when initializing a constexpr variable and fixes PR35457.
llvm-svn: 347745
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp')
0 files changed, 0 insertions, 0 deletions