Skip to content

Commit 4461de2

Browse files
[StaticAnalyzer] Remove unnecessary casts (NFC) (#146706)
N is already of ExplodedNode *.
1 parent e717e50 commit 4461de2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExplodedGraph.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,14 +448,15 @@ class ExplodedNodeSet {
448448

449449
public:
450450
ExplodedNodeSet(ExplodedNode *N) {
451-
assert(N && !static_cast<ExplodedNode*>(N)->isSink());
451+
assert(N && !N->isSink());
452452
Impl.insert(N);
453453
}
454454

455455
ExplodedNodeSet() = default;
456456

457457
void Add(ExplodedNode *N) {
458-
if (N && !static_cast<ExplodedNode*>(N)->isSink()) Impl.insert(N);
458+
if (N && !N->isSink())
459+
Impl.insert(N);
459460
}
460461

461462
using iterator = ImplTy::iterator;

0 commit comments

Comments
 (0)