aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/IntrinsicInst.cpp
diff options
context:
space:
mode:
authorPedro Lobo <pedro.lobo@tecnico.ulisboa.pt>2024-12-13 11:07:02 +0000
committerGitHub <noreply@github.com>2024-12-13 11:07:02 +0000
commit8820de68ddf02fe3c73def49ec32bbeca54c2754 (patch)
treedc87bd8cadcfc9771afb41dfe5bfdee835591a9d /llvm/lib/IR/IntrinsicInst.cpp
parent94a77ebe240eb7dff7c5d645fc7f60cce049783f (diff)
downloadllvm-8820de68ddf02fe3c73def49ec32bbeca54c2754.zip
llvm-8820de68ddf02fe3c73def49ec32bbeca54c2754.tar.gz
llvm-8820de68ddf02fe3c73def49ec32bbeca54c2754.tar.bz2
[debug] Use poison instead of undef to set a killed dbg.assign address [NFC] (#119760)
Diffstat (limited to 'llvm/lib/IR/IntrinsicInst.cpp')
-rw-r--r--llvm/lib/IR/IntrinsicInst.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp
index 002bab8..ad174b1 100644
--- a/llvm/lib/IR/IntrinsicInst.cpp
+++ b/llvm/lib/IR/IntrinsicInst.cpp
@@ -223,7 +223,7 @@ void DbgAssignIntrinsic::setAddress(Value *V) {
void DbgAssignIntrinsic::setKillAddress() {
if (isKillAddress())
return;
- setAddress(UndefValue::get(getAddress()->getType()));
+ setAddress(PoisonValue::get(getAddress()->getType()));
}
bool DbgAssignIntrinsic::isKillAddress() const {