diff options
author | Nuno Lopes <nuno.lopes@tecnico.ulisboa.pt> | 2024-08-07 09:33:55 +0100 |
---|---|---|
committer | Nuno Lopes <nuno.lopes@tecnico.ulisboa.pt> | 2024-08-07 09:33:55 +0100 |
commit | eb7da59588c5ea0ee2b3dea9a7b618adaf11a33c (patch) | |
tree | 635edc96d7d6b4944035c4715f3cdbaf2a4b2467 /llvm/lib/Transforms/Utils/Local.cpp | |
parent | 199c400387a5492e021925ef42ea744ccf7812de (diff) | |
download | llvm-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.cpp | 4 |
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()); |