From e30d343ab6f2a5ae628804233d3b579adf54a3e2 Mon Sep 17 00:00:00 2001 From: Rory Mitchell Date: Tue, 13 Oct 2020 14:48:01 +1300 Subject: [PATCH] Fix test --- src/common/device_helpers.cuh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/device_helpers.cuh b/src/common/device_helpers.cuh index 804cc41ddaa8..08e3c1233f3e 100644 --- a/src/common/device_helpers.cuh +++ b/src/common/device_helpers.cuh @@ -412,7 +412,7 @@ struct XGBDefaultDeviceAllocatorImpl : XGBBaseDeviceAllocator { using other = XGBDefaultDeviceAllocatorImpl; // NOLINT }; pointer allocate(size_t n) { // NOLINT - pointer ptr = nullptr; + pointer ptr; try { ptr = SuperT::allocate(n); } catch (const std::exception& e) {