================
@@ -2067,6 +2067,10 @@ Constant *ConstantExpr::getBitCast(Constant *C, Type 
*DstTy,
 
 Constant *ConstantExpr::getAddrSpaceCast(Constant *C, Type *DstTy,
                                          bool OnlyIfReduced) {
+  // Skip cast if types are identical
----------------
jdoerfert wrote:

@arsenm Wanted to use this one, which requires us to allow no-op casts.
The non-leaf wrappers accept no-op casts, the leaf ones do not. It is unclear 
if there is a deeper meaning to it, I doubt it.
We probably want to modify them all, in a prep PR, or use the combined 
interface as before.
@arsenm wdyt?

https://github.com/llvm/llvm-project/pull/76587
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to