diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-09-09 22:02:40 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-09-09 22:02:41 -0700 |
commit | 545affbf79bfbc19659a0f442f22558791aa4404 (patch) | |
tree | 8ed5354e24c92ad9b9c36753580f184b46904bc6 /llvm/lib/Object/ArchiveWriter.cpp | |
parent | 1f47352ce7e84b2d2692aecdab19932f7abff589 (diff) | |
download | llvm-545affbf79bfbc19659a0f442f22558791aa4404.zip llvm-545affbf79bfbc19659a0f442f22558791aa4404.tar.gz llvm-545affbf79bfbc19659a0f442f22558791aa4404.tar.bz2 |
[DAGCombiner] Use HandleSDNode to keep node alive across call to getNegatedExpression.
getNegatedExpression can delete nodes. If the first call to
getNegatedExpression produced a node that the second call also
manages to create, it might get deleted. Use a HandleSDNode to
ensure it has a use to prevent it from being deleted.
Fixes PR57658.
Reviewed By: RKSimon
Differential Revision: https://reviews.llvm.org/D133602
Diffstat (limited to 'llvm/lib/Object/ArchiveWriter.cpp')
0 files changed, 0 insertions, 0 deletions