[PATCH] D153942: [NFC]Fix possibly derefer nullptr in ComplexDeinterleavingPass.cpp
Wang, Xin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 28 20:26:37 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc78acc92759c: [NFC]Fix possibly derefer nullptr in ComplexDeinterleavingPass.cpp (authored by XinWang10).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153942/new/
https://reviews.llvm.org/D153942
Files:
llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
Index: llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
===================================================================
--- llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
+++ llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
@@ -1046,7 +1046,7 @@
if (!FinalNode)
return nullptr;
}
-
+ assert(FinalNode && "FinalNode can not be nullptr here");
// Set the Real and Imag fields of the final node and submit it
FinalNode->Real = Real;
FinalNode->Imag = Imag;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153942.535612.patch
Type: text/x-patch
Size: 479 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230629/8234678d/attachment.bin>
More information about the llvm-commits
mailing list