[all-commits] [llvm/llvm-project] 73c6be: [ASTImporter] Fix crash caused by unset AttributeS...

Gabor Marton via All-commits all-commits at lists.llvm.org
Wed Oct 14 05:11:10 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 73c6beb2f7053fe8b5150072c2b5cd930de38a22
      https://github.com/llvm/llvm-project/commit/73c6beb2f7053fe8b5150072c2b5cd930de38a22
  Author: Gabor Marton <gabor.marton at ericsson.com>
  Date:   2020-10-14 (Wed, 14 Oct 2020)

  Changed paths:
    M clang/lib/AST/ASTImporter.cpp
    A clang/test/ASTMerge/attr/Inputs/RestrictAttr.cpp
    A clang/test/ASTMerge/attr/testRestrictAttr.cpp
    M clang/unittests/AST/ASTImporterTest.cpp

  Log Message:
  -----------
  [ASTImporter] Fix crash caused by unset AttributeSpellingListIndex

During the import of attributes we forgot to set the spelling list
index. This caused a segfault when we wanted to traverse the AST
(e.g. by the dump() method).

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




More information about the All-commits mailing list