diff options
| author | Stephen Tozer <stephen.tozer@sony.com> | 2024-02-07 13:06:55 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-07 13:06:55 +0000 |
| commit | 6cb66ee5f8827040c5178fc2a479c138f4838eca (patch) | |
| tree | f246d29bdea90e4d7c6e4752a6de0c45773813e3 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | f37d81f8a3e1475f30bec63bfc0b703fc9509d7c (diff) | |
[RemoveDIs][DebugInfo] Handle RAUW from dead constants (#80837)
Ensure that when a constant value dies, all ValueAsMetadata uses of that
constant in a DebugValueUser will be replaced with a PoisonValue instead
of a nullptr. This has little visible effect currently, as any nullptr metadata
uses in a DebugValueUser would be converted to an empty MDNode in
the end anyway, but this patch adds an assert that would be triggered by
two existing tests without the functional component of this patch:
llvm/test/Transforms/Inline/delete-function-with-metadata-use.ll
llvm/test/DebugInfo/X86/array2.ll
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
