[all-commits] [llvm/llvm-project] 625197: [clang][ASTImporter] Support Importer of BuiltinBi...

Qizhi Hu via All-commits all-commits at lists.llvm.org
Fri Dec 22 02:07:13 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 625197d39cf9d56a295f8e6ee2584c825b461db9
      https://github.com/llvm/llvm-project/commit/625197d39cf9d56a295f8e6ee2584c825b461db9
  Author: Qizhi Hu <836744285 at qq.com>
  Date:   2023-12-22 (Fri, 22 Dec 2023)

  Changed paths:
    M clang/lib/AST/ASTImporter.cpp
    M clang/unittests/AST/ASTImporterTest.cpp

  Log Message:
  -----------
  [clang][ASTImporter] Support Importer of BuiltinBitCastExpr (#74813)

Since import `ExplicitCastExpr` lacks of processing
`BuiltinBitCastExprClass` type, it would reach to the 'unreachable' code
and produce the crash. This patch aims to fix the
[crash](https://github.com/llvm/llvm-project/issues/74774) and try to
handle `BuiltinBitCastExpr`.

Co-authored-by: huqizhi <836744285 at qq.com>




More information about the All-commits mailing list