[all-commits] [llvm/llvm-project] dd9657: [ASTImporter] Fix crash caused by unimported type ...

Gabor Marton via All-commits all-commits at lists.llvm.org
Wed Oct 14 04:55:24 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: dd965711c9f0e4b6e1dc9b465fe049c38e05d5aa
      https://github.com/llvm/llvm-project/commit/dd965711c9f0e4b6e1dc9b465fe049c38e05d5aa
  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/FormatAttr.cpp
    A clang/test/ASTMerge/attr/testFormatAttr.cpp
    M clang/unittests/AST/ASTImporterTest.cpp

  Log Message:
  -----------
  [ASTImporter] Fix crash caused by unimported type of FromatAttr

During the import of FormatAttrs we forgot to import the type (e.g
`__scanf__`) of the attribute. This caused a segfault when we wanted to
traverse the AST (e.g. by the dump() method).

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




More information about the All-commits mailing list