[all-commits] [llvm/llvm-project] fe86db: [clang]: Remove assertion which checks explicit d...

Gousemoodhin Nadaf via All-commits all-commits at lists.llvm.org
Thu Aug 20 18:16:07 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: fe86dbb32da21e1c8c6eb4864a00f61ed3d003a3
      https://github.com/llvm/llvm-project/commit/fe86dbb32da21e1c8c6eb4864a00f61ed3d003a3
  Author: Gousemoodhin Nadaf <nadafgouse5 at gmail.com>
  Date:   2020-08-20 (Thu, 20 Aug 2020)

  Changed paths:
    M clang/lib/Sema/DeclSpec.cpp
    A clang/test/Misc/explicit.cpp

  Log Message:
  -----------
  [clang]:  Remove assertion which checks explicit declaration

explicit keyword is declared outside of class is invalid, invalid explicit declaration is handled inside DiagnoseFunctionSpecifiers() function. To avoid compiler crash in case of invalid explicit declaration, remove assertion.

Reviewed By: rsmith

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




More information about the All-commits mailing list