[clang] [Clang][CodeGen] Preserve alignment information for pointer arithmetics (PR #152575)

Yingwei Zheng via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 22 12:47:55 PDT 2025


================
@@ -1381,6 +1432,13 @@ static Address EmitPointerWithAlignment(const Expr *E, LValueBaseInfo *BaseInfo,
         if (CE->getCastKind() == CK_AddressSpaceConversion)
           Addr = CGF.Builder.CreateAddrSpaceCast(
               Addr, CGF.ConvertType(E->getType()), ElemTy);
+        // Note: Workaround for PR114062. See also the special handling in
----------------
dtcxzyw wrote:

Removed. With https://github.com/llvm/llvm-project/commit/0c480dd4b61e285bfda4de99c77da28922e64b94 it is no longer needed.

https://github.com/llvm/llvm-project/pull/152575


More information about the cfe-commits mailing list