Skip to content

Commit 2f184c9

Browse files
committed
removed unwanted nullptr check.
1 parent 89fc422 commit 2f184c9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/lib/CodeGen/MachineTraceMetrics.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,8 @@ MachineTraceMetrics::~MachineTraceMetrics() { clear(); }
9797
void MachineTraceMetrics::clear() {
9898
MF = nullptr;
9999
BlockInfo.clear();
100-
for (auto &E : Ensembles) {
101-
if (E)
102-
E.reset();
103-
}
100+
for (auto &E : Ensembles)
101+
E.reset();
104102
}
105103

106104
//===----------------------------------------------------------------------===//

0 commit comments

Comments
 (0)