[llvm] [clang] Replace uses of CreatePointerBitCastOrAddrSpaceCast (NFC) (PR #68277)
Youngsuk Kim via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 5 17:13:46 PDT 2023
================
@@ -3088,9 +3088,6 @@ void ItaniumCXXABI::EmitThreadLocalInitFuncs(
CharUnits Align = CGM.getContext().getDeclAlign(VD);
Val = Builder.CreateAlignedLoad(Var->getValueType(), Val, Align);
}
- if (Val->getType() != Wrapper->getReturnType())
- Val = Builder.CreatePointerBitCastOrAddrSpaceCast(
----------------
JOE1994 wrote:
Maybe I should play safe by just replacing the call to `CreateAddrSpaceCast` instead of stripping it entirely.
https://github.com/llvm/llvm-project/pull/68277
More information about the llvm-commits
mailing list