aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nuno.lopes@tecnico.ulisboa.pt>2024-08-07 09:33:55 +0100
committerNuno Lopes <nuno.lopes@tecnico.ulisboa.pt>2024-08-07 09:33:55 +0100
commiteb7da59588c5ea0ee2b3dea9a7b618adaf11a33c (patch)
tree635edc96d7d6b4944035c4715f3cdbaf2a4b2467 /llvm/lib/Transforms/Utils/Local.cpp
parent199c400387a5492e021925ef42ea744ccf7812de (diff)
downloadllvm-eb7da59588c5ea0ee2b3dea9a7b618adaf11a33c.zip
llvm-eb7da59588c5ea0ee2b3dea9a7b618adaf11a33c.tar.gz
llvm-eb7da59588c5ea0ee2b3dea9a7b618adaf11a33c.tar.bz2
[debuginfo] replace usage of undef with poison as placeholder [NFC]
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 7192efe..efb02fd 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -1726,7 +1726,7 @@ void llvm::ConvertDebugDeclareToDebugValue(DbgVariableIntrinsic *DII,
// For now, when there is a store to parts of the variable (but we do not
// know which part) we insert an dbg.value intrinsic to indicate that we
// know nothing about the variable's content.
- DV = UndefValue::get(DV->getType());
+ DV = PoisonValue::get(DV->getType());
insertDbgValueOrDbgVariableRecord(Builder, DV, DIVar, DIExpr, NewLoc,
SI->getIterator());
}
@@ -1798,7 +1798,7 @@ void llvm::ConvertDebugDeclareToDebugValue(DbgVariableRecord *DVR,
// For now, when there is a store to parts of the variable (but we do not
// know which part) we insert an dbg.value intrinsic to indicate that we
// know nothing about the variable's content.
- DV = UndefValue::get(DV->getType());
+ DV = PoisonValue::get(DV->getType());
ValueAsMetadata *DVAM = ValueAsMetadata::get(DV);
DbgVariableRecord *NewDVR =
new DbgVariableRecord(DVAM, DIVar, DIExpr, NewLoc.get());