[all-commits] [llvm/llvm-project] 713328: [clang] Do not attempt to zero-extend _BitInt(1) w...

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Tue May 2 05:34:20 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7133283835fbc260465e899ff86c07202486558a
      https://github.com/llvm/llvm-project/commit/7133283835fbc260465e899ff86c07202486558a
  Author: Mariya Podchishchaeva <mariya.podchishchaeva at intel.com>
  Date:   2023-05-02 (Tue, 02 May 2023)

  Changed paths:
    M clang/docs/ReleaseNotes.rst
    M clang/lib/CodeGen/CGExprConstant.cpp
    M clang/test/CodeGen/ext-int.c

  Log Message:
  -----------
  [clang] Do not attempt to zero-extend _BitInt(1) when not required

`ConvertTypeForMem` doesn't return wider type for _BitInt unless it is
used in a bitfield, so no need to extend when trying to initialize a
global variable.

Fixes https://github.com/llvm/llvm-project/issues/62207

Reviewed By: erichkeane, shafik

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




More information about the All-commits mailing list