[all-commits] [llvm/llvm-project] 481de0: [CodeGen] Prefer CreateElementBitCast() where poss...
Nikita Popov via All-commits
all-commits at lists.llvm.org
Wed Dec 15 02:48:54 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 481de0ed804c8547fbfac5fe88d109c692c8d117
https://github.com/llvm/llvm-project/commit/481de0ed804c8547fbfac5fe88d109c692c8d117
Author: Nikita Popov <npopov at redhat.com>
Date: 2021-12-15 (Wed, 15 Dec 2021)
Changed paths:
M clang/lib/CodeGen/CGAtomic.cpp
M clang/lib/CodeGen/CGBuilder.h
M clang/lib/CodeGen/CGBuiltin.cpp
M clang/lib/CodeGen/CGExprCXX.cpp
M clang/lib/CodeGen/CGNonTrivialStruct.cpp
M clang/lib/CodeGen/MicrosoftCXXABI.cpp
Log Message:
-----------
[CodeGen] Prefer CreateElementBitCast() where possible
CreateElementBitCast() can preserve the pointer element type in
the presence of opaque pointers, so use it in place of CreateBitCast()
in some places. This also sometimes simplifies the code a bit.
More information about the All-commits
mailing list