Skip to content

Commit d0117b7

Browse files
committed
[RemoveDIs] Copy debug mode to new functions in amdgpu-lower-buffer-fat-pointers
Fixes failing tests after #84308 LLVM :: CodeGen/AMDGPU/GlobalISel/irtranslator-non-integral-address-spaces-vectors.ll LLVM :: CodeGen/AMDGPU/GlobalISel/irtranslator-non-integral-address-spaces.ll LLVM :: CodeGen/AMDGPU/lower-buffer-fat-pointers-calls.ll LLVM :: CodeGen/AMDGPU/lower-buffer-fat-pointers-constants.ll LLVM :: CodeGen/AMDGPU/lower-buffer-fat-pointers-pointer-ops.ll LLVM :: CodeGen/AMDGPU/pal-metadata-3.0.ll Buildbots: https://lab.llvm.org/buildbot/#/builders/121/builds/39855
1 parent 769eab4 commit d0117b7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1841,6 +1841,7 @@ static Function *moveFunctionAdaptingType(Function *OldF, FunctionType *NewTy,
18411841
bool IsIntrinsic = OldF->isIntrinsic();
18421842
Function *NewF =
18431843
Function::Create(NewTy, OldF->getLinkage(), OldF->getAddressSpace());
1844+
NewF->IsNewDbgInfoFormat = OldF->IsNewDbgInfoFormat;
18441845
NewF->copyAttributesFrom(OldF);
18451846
NewF->copyMetadata(OldF, 0);
18461847
NewF->takeName(OldF);

0 commit comments

Comments
 (0)