File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,7 @@ struct LazyOffsetPtr {
355355 explicit LazyOffsetPtr (uint64_t Offset) : Data() {
356356 assert ((Offset << 1 >> 1 ) == Offset && " Offsets must require < 63 bits" );
357357 if (Offset == 0 )
358- SetPtr (NULL );
358+ SetPtr (nullptr );
359359 else
360360 SetU64 ((Offset << 1 ) | 0x01 );
361361 }
@@ -368,7 +368,7 @@ struct LazyOffsetPtr {
368368 LazyOffsetPtr &operator =(uint64_t Offset) {
369369 assert ((Offset << 1 >> 1 ) == Offset && " Offsets must require < 63 bits" );
370370 if (Offset == 0 )
371- SetPtr (NULL );
371+ SetPtr (nullptr );
372372 else
373373 SetU64 ((Offset << 1 ) | 0x01 );
374374
@@ -378,12 +378,12 @@ struct LazyOffsetPtr {
378378 // / Whether this pointer is non-NULL.
379379 // /
380380 // / This operation does not require the AST node to be deserialized.
381- explicit operator bool () const { return isOffset () || GetPtr () != NULL ; }
381+ explicit operator bool () const { return isOffset () || GetPtr () != nullptr ; }
382382
383383 // / Whether this pointer is non-NULL.
384384 // /
385385 // / This operation does not require the AST node to be deserialized.
386- bool isValid () const { return isOffset () || GetPtr () != NULL ; }
386+ bool isValid () const { return isOffset () || GetPtr () != nullptr ; }
387387
388388 // / Whether this pointer is currently stored as an offset.
389389 bool isOffset () const { return GetLSB () & 0x01 ; }
You can’t perform that action at this time.
0 commit comments