[all-commits] [llvm/llvm-project] 330873: Fix crash if base specifier parsing hits an invali...

Richard Smith via All-commits all-commits at lists.llvm.org
Mon Mar 30 17:21:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 330873230071ffc2aebc0fe74db55e7a530c2f1b
      https://github.com/llvm/llvm-project/commit/330873230071ffc2aebc0fe74db55e7a530c2f1b
  Author: Richard Smith <richard at metafoo.co.uk>
  Date:   2020-03-30 (Mon, 30 Mar 2020)

  Changed paths:
    M clang/include/clang/Parse/Parser.h
    M clang/include/clang/Sema/DeclSpec.h
    M clang/lib/Parse/ParseDecl.cpp
    M clang/lib/Parse/ParseDeclCXX.cpp
    M clang/lib/Parse/ParseExpr.cpp
    M clang/lib/Parse/ParseExprCXX.cpp
    M clang/lib/Parse/ParseObjc.cpp
    M clang/lib/Parse/ParseTemplate.cpp
    M clang/lib/Parse/Parser.cpp
    M clang/test/Parser/cxx-class.cpp

  Log Message:
  -----------
  Fix crash if base specifier parsing hits an invalid type annotation.

Also change type annotation representation from ParsedType to TypeResult
to make it clearer to consumers that they can represent invalid types.




More information about the All-commits mailing list