Skip to content

Commit 8820de6

Browse files
authored
[debug] Use poison instead of undef to set a killed dbg.assign address [NFC] (llvm#119760)
1 parent 94a77eb commit 8820de6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/IntrinsicInst.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ void DbgAssignIntrinsic::setAddress(Value *V) {
223223
void DbgAssignIntrinsic::setKillAddress() {
224224
if (isKillAddress())
225225
return;
226-
setAddress(UndefValue::get(getAddress()->getType()));
226+
setAddress(PoisonValue::get(getAddress()->getType()));
227227
}
228228

229229
bool DbgAssignIntrinsic::isKillAddress() const {

0 commit comments

Comments
 (0)