Skip to content

Commit eaa26fa

Browse files
committed
[Gardening] Changed 0 to nullptr for pointer comparison
1 parent dd715df commit eaa26fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckStmt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class StmtChecker : public StmtVisitor<StmtChecker, Stmt*> {
332332
template<typename StmtTy>
333333
bool typeCheckStmt(StmtTy *&S) {
334334
StmtTy *S2 = cast_or_null<StmtTy>(visit(S));
335-
if (S2 == 0) return true;
335+
if (S2 == nullptr) return true;
336336
S = S2;
337337
performStmtDiagnostics(TC, S);
338338
return false;

0 commit comments

Comments
 (0)