[all-commits] [llvm/llvm-project] 7faa95: [clang][CodeGen]Fix clang crash and add bitfield s...

wangyihan via All-commits all-commits at lists.llvm.org
Thu Mar 24 12:23:43 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7faa95624eb3a01b75ccc391f32768ba70b3b630
      https://github.com/llvm/llvm-project/commit/7faa95624eb3a01b75ccc391f32768ba70b3b630
  Author: wangyihan <1135831309 at qq.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/test/CodeGen/dump-struct-builtin.c

  Log Message:
  -----------
  [clang][CodeGen]Fix clang crash and add bitfield support in __builtin_dump_struct

Fix clang crash and add bitfield support in __builtin_dump_struct.

In clang13.0.x, a struct with three or more members and a bitfield at
the same time will cause a crash. In clang15.x, as long as the struct
has one bitfield, it will cause a crash in clang.

Open issue: https://github.com/llvm/llvm-project/issues/54462

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




More information about the All-commits mailing list