[all-commits] [llvm/llvm-project] f0719b: PR44514: Fix recovery from noexcept with non-conve...

Erich Keane via All-commits all-commits at lists.llvm.org
Mon Jan 13 13:52:45 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f0719bf2196c807351137ff30e39fd12aa5aa884
      https://github.com/llvm/llvm-project/commit/f0719bf2196c807351137ff30e39fd12aa5aa884
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2020-01-13 (Mon, 13 Jan 2020)

  Changed paths:
    M clang/lib/Sema/SemaExceptionSpec.cpp
    M clang/test/SemaCXX/cxx0x-noexcept-expression.cpp

  Log Message:
  -----------
  PR44514: Fix recovery from noexcept with non-convertible expressions

We currently treat noexcept(not-convertible-to-bool) as 'none', which
results in the typeloc info being a different size, and causing an
assert later on in the process.  In order to make recovery less
destructive, replace this with noexcept(false) and a constructed 'false'
expression.

Bug Report: https://bugs.llvm.org/show_bug.cgi?id=44514

Differential Revision: https://reviews.llvm.org/D72621




More information about the All-commits mailing list