Skip to content

Commit 872ce49

Browse files
committed
[Assignment Tracking] Revert to using undef in isKillAddress
`undef` should continue to be used here to ensure compatibility with older IR.
1 parent e7ffd08 commit 872ce49

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
@@ -228,7 +228,7 @@ void DbgAssignIntrinsic::setKillAddress() {
228228

229229
bool DbgAssignIntrinsic::isKillAddress() const {
230230
Value *Addr = getAddress();
231-
return !Addr || isa<PoisonValue>(Addr);
231+
return !Addr || isa<UndefValue>(Addr);
232232
}
233233

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

0 commit comments

Comments
 (0)