[llvm] b82a4bf - [SelectionDAG] Remove unnecessary cast of nullptr in std::fill call. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 23 22:52:08 PDT 2024
Author: Craig Topper
Date: 2024-04-23T22:51:20-07:00
New Revision: b82a4bfb54284d96ab065596620e260319045330
URL: https://github.com/llvm/llvm-project/commit/b82a4bfb54284d96ab065596620e260319045330
DIFF: https://github.com/llvm/llvm-project/commit/b82a4bfb54284d96ab065596620e260319045330.diff
LOG: [SelectionDAG] Remove unnecessary cast of nullptr in std::fill call. NFC
Added:
Modified:
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index b63b8b893fdbf1..5de5587b38fa1c 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1418,10 +1418,8 @@ void SelectionDAG::clear() {
TargetExternalSymbols.clear();
MCSymbols.clear();
SDEI.clear();
- std::fill(CondCodeNodes.begin(), CondCodeNodes.end(),
- static_cast<CondCodeSDNode*>(nullptr));
- std::fill(ValueTypeNodes.begin(), ValueTypeNodes.end(),
- static_cast<SDNode*>(nullptr));
+ std::fill(CondCodeNodes.begin(), CondCodeNodes.end(), nullptr);
+ std::fill(ValueTypeNodes.begin(), ValueTypeNodes.end(), nullptr);
EntryNode.UseList = nullptr;
InsertNode(&EntryNode);
More information about the llvm-commits
mailing list