[clang] 9808e1f - clang: Remove unnecessary pointer bitcast (#138857)

via cfe-commits cfe-commits at lists.llvm.org
Wed May 7 10:24:37 PDT 2025


Author: Matt Arsenault
Date: 2025-05-07T19:24:34+02:00
New Revision: 9808e1f9820eb16d240bee2e101b6538fe8b8269

URL: https://github.com/llvm/llvm-project/commit/9808e1f9820eb16d240bee2e101b6538fe8b8269
DIFF: https://github.com/llvm/llvm-project/commit/9808e1f9820eb16d240bee2e101b6538fe8b8269.diff

LOG: clang: Remove unnecessary pointer bitcast (#138857)

Added: 
    

Modified: 
    clang/lib/CodeGen/CGPointerAuth.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CodeGen/CGPointerAuth.cpp b/clang/lib/CodeGen/CGPointerAuth.cpp
index 0a183a8524c17..474848c8324f3 100644
--- a/clang/lib/CodeGen/CGPointerAuth.cpp
+++ b/clang/lib/CodeGen/CGPointerAuth.cpp
@@ -724,7 +724,6 @@ Address Address::getResignedAddress(const CGPointerAuthInfo &NewInfo,
     Val = CGF.emitPointerAuthResign(getBasePointer(), QualType(), CurInfo,
                                     NewInfo, isKnownNonNull());
 
-  Val = CGF.Builder.CreateBitCast(Val, getType());
   return Address(Val, getElementType(), getAlignment(), NewInfo,
                  /*Offset=*/nullptr, isKnownNonNull());
 }


        


More information about the cfe-commits mailing list