[clang] [clang][OpenCL][CodeGen][AMDGPU] Do not use `private` as the default AS for when `generic` is available (PR #112442)
Matt Arsenault via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 16 04:26:16 PDT 2024
================
@@ -5903,7 +5904,7 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
auto Call = RValue::get(
EmitRuntimeCall(CGM.CreateRuntimeFunction(FTy, Name), Args));
if (TmpSize)
- EmitLifetimeEnd(TmpSize, TmpPtr);
+ EmitLifetimeEnd(TmpSize, TmpPtr->stripPointerCasts());
----------------
arsenm wrote:
Can still just do the stripPointerCasts once above
https://github.com/llvm/llvm-project/pull/112442
More information about the cfe-commits
mailing list