[all-commits] [llvm/llvm-project] fddc4e: Correct handling of the 'throw()' exception specif...

James Y Knight via All-commits all-commits at lists.llvm.org
Wed Nov 10 14:44:32 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fddc4e41164e2fd152605362639eb3255cc75212
      https://github.com/llvm/llvm-project/commit/fddc4e41164e2fd152605362639eb3255cc75212
  Author: James Y Knight <jyknight at google.com>
  Date:   2021-11-10 (Wed, 10 Nov 2021)

  Changed paths:
    M clang/lib/CodeGen/CGException.cpp
    M clang/test/CXX/except/except.spec/p9-dynamic.cpp

  Log Message:
  -----------
  Correct handling of the 'throw()' exception specifier in C++17.

Per C++17 [except.spec], 'throw()' has become equivalent to
'noexcept', and should therefore call std::terminate, not
std::unexpected.

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




More information about the All-commits mailing list