diff options
author | Stephen Tozer <Stephen.Tozer@Sony.com> | 2021-04-29 16:36:05 +0100 |
---|---|---|
committer | Stephen Tozer <Stephen.Tozer@Sony.com> | 2021-05-07 13:13:56 +0100 |
commit | ce0c1f3ced9bccb29c34b87de82c5cdffcbcd457 (patch) | |
tree | 44ddf80cecace7308bb6c653b06469ecb26fadd5 /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 280aa3415e408cacc520274fdb948ec9fc63865a (diff) | |
download | llvm-ce0c1f3ced9bccb29c34b87de82c5cdffcbcd457.zip llvm-ce0c1f3ced9bccb29c34b87de82c5cdffcbcd457.tar.gz llvm-ce0c1f3ced9bccb29c34b87de82c5cdffcbcd457.tar.bz2 |
[DebugInfo] Fix crash when emitting an invalidated SDDbgValue
This patch fixes a crash in the compiler that occurs when certain
invalidated SDDbgValues are emitted. The cause of this was that we would
attempt to check the liveness of the debug value's operands, which
triggers an assert if any of those operands are invalid. This patch
changes this check such that it only occurs if the SDDbgValue is valid;
if not, the check is irrelevant anyway, so can be safely ignored.
Differential Revision: https://reviews.llvm.org/D101540
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
0 files changed, 0 insertions, 0 deletions