diff options
author | Erich Keane <erich.keane@intel.com> | 2019-06-05 14:10:39 +0000 |
---|---|---|
committer | Erich Keane <erich.keane@intel.com> | 2019-06-05 14:10:39 +0000 |
commit | da59652c1ba15ee780cf38186933dcd135e36ed4 (patch) | |
tree | 96c29e065fce6c777dc8d77f7910efeadc743b19 /llvm/lib/Analysis/LoopInfo.cpp | |
parent | 253086230fa5d577674b4607b68714cd18cb5d99 (diff) | |
download | llvm-da59652c1ba15ee780cf38186933dcd135e36ed4.zip llvm-da59652c1ba15ee780cf38186933dcd135e36ed4.tar.gz llvm-da59652c1ba15ee780cf38186933dcd135e36ed4.tar.bz2 |
Avoid using NoThrow Exception Specifier in non-C++ Modes.
As reported in https://bugs.llvm.org/show_bug.cgi?id=42113, there are a
number of locations in Clang where it is assumed that exception
specifications are only valid in C++ mode. Since the original
justification for the NoThrow Exception Specifier Type was C++ related,
this patch just makes C mode use the attribute-based nothrow handling.
Additionally, I noticed that the handling of non-prototype functions
regressed the behavior of the nothrow attribute, in part because it is
was listed in the function type macro(which I did in the previous
patch). In reality, it should only be doing so in a conditional nature,
so this patch removes it there and puts it directly in the switch to be
handled correctly.
llvm-svn: 362607
Diffstat (limited to 'llvm/lib/Analysis/LoopInfo.cpp')
0 files changed, 0 insertions, 0 deletions