summaryrefslogtreecommitdiffstats
path: root/clang/tools/diagtool/DiagnosticNames.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/tools/diagtool/DiagnosticNames.h')
-rw-r--r--clang/tools/diagtool/DiagnosticNames.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/tools/diagtool/DiagnosticNames.h b/clang/tools/diagtool/DiagnosticNames.h
index a3321fa6817..2571b199691 100644
--- a/clang/tools/diagtool/DiagnosticNames.h
+++ b/clang/tools/diagtool/DiagnosticNames.h
@@ -48,7 +48,7 @@ namespace diagtool {
friend struct GroupRecord;
group_iterator(const short *Start) : CurrentID(Start) {
if (CurrentID && *CurrentID == -1)
- CurrentID = 0;
+ CurrentID = nullptr;
}
public:
@@ -70,7 +70,7 @@ namespace diagtool {
group_iterator &operator++() {
++CurrentID;
if (*CurrentID == -1)
- CurrentID = 0;
+ CurrentID = nullptr;
return *this;
}
OpenPOWER on IntegriCloud