summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachinePipeliner.cpp
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2018-11-28 11:57:13 +0000
committerAaron Ballman <aaron@aaronballman.com>2018-11-28 11:57:13 +0000
commitdda6290f16075795a5700c29d1b990fff8e1261b (patch)
treec34f2c4941666153ed851ec12163254d089b8141 /llvm/lib/CodeGen/MachinePipeliner.cpp
parentaf860d44fe5b0146126f296df1fa2e4162b781b6 (diff)
downloadbcm5719-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/CodeGen/MachinePipeliner.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud