[llvm] 8820de6 - [debug] Use poison instead of undef to set a killed dbg.assign address [NFC] (#119760)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 13 03:07:05 PST 2024
Author: Pedro Lobo
Date: 2024-12-13T11:07:02Z
New Revision: 8820de68ddf02fe3c73def49ec32bbeca54c2754
URL: https://github.com/llvm/llvm-project/commit/8820de68ddf02fe3c73def49ec32bbeca54c2754
DIFF: https://github.com/llvm/llvm-project/commit/8820de68ddf02fe3c73def49ec32bbeca54c2754.diff
LOG: [debug] Use poison instead of undef to set a killed dbg.assign address [NFC] (#119760)
Added:
Modified:
llvm/lib/IR/IntrinsicInst.cpp
Removed:
################################################################################
diff --git a/llvm/lib/IR/IntrinsicInst.cpp b/llvm/lib/IR/IntrinsicInst.cpp
index 002bab8e079e50..ad174b1487a643 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 {
More information about the llvm-commits
mailing list