[all-commits] [llvm/llvm-project] 6f986b: [clang] Remove CGBuilderTy::CreateElementBitCast

Youngsuk Kim via All-commits all-commits at lists.llvm.org
Sun Jul 2 07:41:14 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f986bffc51a243a1f4328b11624a0f21918a78f
      https://github.com/llvm/llvm-project/commit/6f986bffc51a243a1f4328b11624a0f21918a78f
  Author: Youngsuk Kim <youngsuk.kim at hpe.com>
  Date:   2023-07-02 (Sun, 02 Jul 2023)

  Changed paths:
    M clang/lib/CodeGen/CGBuilder.h
    M clang/lib/CodeGen/CGBuiltin.cpp
    M clang/lib/CodeGen/CGCall.cpp
    M clang/lib/CodeGen/CGExpr.cpp
    M clang/lib/CodeGen/CGExprCXX.cpp
    M clang/lib/CodeGen/CGObjCRuntime.cpp
    M clang/lib/CodeGen/ItaniumCXXABI.cpp
    M clang/lib/CodeGen/Targets/CSKY.cpp
    M clang/lib/CodeGen/Targets/RISCV.cpp

  Log Message:
  -----------
  [clang] Remove CGBuilderTy::CreateElementBitCast

`CGBuilderTy::CreateElementBitCast()` no longer does what its name suggests.

Remove remaining in-tree uses by one of the following methods.

* drop the call entirely
* fold it to an `Address` construction
* replace it with `Address::withElementType()`

This is a NFC cleanup effort.

Reviewed By: barannikov88, nikic, jrtc27

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




More information about the All-commits mailing list