diff --git a/compiler-rt/lib/scudo/standalone/fuchsia.cpp b/compiler-rt/lib/scudo/standalone/fuchsia.cpp --- a/compiler-rt/lib/scudo/standalone/fuchsia.cpp +++ b/compiler-rt/lib/scudo/standalone/fuchsia.cpp @@ -96,10 +96,11 @@ // No need to track the Vmo if we don't intend on resizing it. Close it. if (Flags & MAP_RESIZABLE) { DCHECK(Data); - if (Data->Vmo == ZX_HANDLE_INVALID) + if (Data->Vmo == ZX_HANDLE_INVALID) { Data->Vmo = Vmo; - else + } else { DCHECK_EQ(Data->Vmo, Vmo); + } } else { CHECK_EQ(_zx_handle_close(Vmo), ZX_OK); }