From 4bedd99d20660050ed2b290971e58381e762ff61 Mon Sep 17 00:00:00 2001 From: Pedro Lobo Date: Tue, 11 Mar 2025 22:29:09 +0000 Subject: [PATCH] [AMDGPU] Change placeholder from `undef` to `poison` Replace `undef` debug info with `poison`. --- llvm/lib/Target/AMDGPU/AMDGPULowerBufferFatPointers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } }