[all-commits] [llvm/llvm-project] 6f2074: Add support for ignored bitfield conditional codegen.

Erich Keane via All-commits all-commits at lists.llvm.org
Wed Apr 13 10:34:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f20744b7ff875bb5eb735d1e7636ad6a66d4526
      https://github.com/llvm/llvm-project/commit/6f20744b7ff875bb5eb735d1e7636ad6a66d4526
  Author: Erich Keane <erich.keane at intel.com>
  Date:   2022-04-13 (Wed, 13 Apr 2022)

  Changed paths:
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CodeGenFunction.h
    A clang/test/CodeGenCXX/ignored-bitfield-conditional.cpp

  Log Message:
  -----------
  Add support for ignored bitfield conditional codegen.

Currently we emit an error in just about every case of conditionals
with a 'non simple' branch if treated as an LValue.  This patch adds
support for the special case where this is an 'ignored' lvalue, which
permits the side effects from happening.

It also splits up the emit for conditional LValue in a way that should
be usable to handle simple assignment expressions in similar situations.

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




More information about the All-commits mailing list