From 7cd4eab0bfca6192f14d6143410e1ae774eb1c29 Mon Sep 17 00:00:00 2001 From: Stephan Hartmann Date: Thu, 31 Dec 2020 11:57:22 +0000 Subject: [PATCH] GCC: do not pass unique_ptr to DCHECK_NE, but the actual pointer DCHECK_NE comparison requires CheckOpValueStr to be defined for the type, or providing an output stream operator. A unique_ptr does not provide any. USE DCHECK instead. --- net/third_party/quiche/src/quic/core/quic_path_validator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/third_party/quiche/src/quic/core/quic_path_validator.cc b/net/third_party/quiche/src/quic/core/quic_path_validator.cc index 0722216..fb2aeaf 100644 --- a/net/third_party/quiche/src/quic/core/quic_path_validator.cc +++ b/net/third_party/quiche/src/quic/core/quic_path_validator.cc @@ -68,7 +68,7 @@ void QuicPathValidator::OnPathResponse(const QuicPathFrameBuffer& probing_data, void QuicPathValidator::StartPathValidation( std::unique_ptr context, std::unique_ptr result_delegate) { - DCHECK_NE(nullptr, context); + DCHECK(context); QUIC_DLOG(INFO) << "Start validating path " << *context << " via writer: " << context->WriterToUse(); if (path_context_ != nullptr) { -- 2.26.2