diff --git a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp index 608b43b59eed3..5dd1fe14e5626 100644 --- a/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp +++ b/llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp @@ -1620,7 +1620,7 @@ void SplitPtrStructs::killAndReplaceSplitInstructions( Dbg->setExpression(*RsrcExpr); Dbg->replaceVariableLocationOp(I, Rsrc); } else { - Dbg->replaceVariableLocationOp(I, UndefValue::get(I->getType())); + Dbg->replaceVariableLocationOp(I, PoisonValue::get(I->getType())); } }