Skip to content

Commit e7ffd08

Browse files
committed
[Assignment Tracking] Change placeholder from undef to poison
Empty metadata address components of `dbg.assign` can be represented as `poison` values instead of `undef` values.
1 parent b03470b commit e7ffd08

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/IntrinsicInst.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,12 +223,12 @@ 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 {
230230
Value *Addr = getAddress();
231-
return !Addr || isa<UndefValue>(Addr);
231+
return !Addr || isa<PoisonValue>(Addr);
232232
}
233233

234234
void DbgAssignIntrinsic::setValue(Value *V) {

0 commit comments

Comments
 (0)