aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-cov/SourceCoverageViewText.cpp
diff options
context:
space:
mode:
authorErich Keane <erich.keane@intel.com>2017-09-18 21:28:55 +0000
committerErich Keane <erich.keane@intel.com>2017-09-18 21:28:55 +0000
commit0ac9524c9924636834f8a2058e81e95f334c440d (patch)
tree98c2fdc7632b0f1a49c61315879c2c4437d98202 /llvm/tools/llvm-cov/SourceCoverageViewText.cpp
parent283eae82fd46bf9036fb331d878dcceff80014a9 (diff)
downloadllvm-0ac9524c9924636834f8a2058e81e95f334c440d.zip
llvm-0ac9524c9924636834f8a2058e81e95f334c440d.tar.gz
llvm-0ac9524c9924636834f8a2058e81e95f334c440d.tar.bz2
[Sema] Fix a pair of crashes when generating exception specifiers with an
error'ed field for a template class' default ctor. The two examples in the test would both cause a compiler assert when attempting to calculate the exception specifier for the default constructor for the template classes. The problem was that dependents of this function expect that Field->getInClassInitializer (including canThrow) is not nullptr. However, if the template's initializer has an error, exactly that situation happens. This patch simply sets the field to be invalid. Differential Revision: https://reviews.llvm.org/D37865 llvm-svn: 313569
Diffstat (limited to 'llvm/tools/llvm-cov/SourceCoverageViewText.cpp')
0 files changed, 0 insertions, 0 deletions