diff --git a/xla/tsl/lib/gtl/int_type_test.cc b/xla/tsl/lib/gtl/int_type_test.cc index 85b011ed5bcb1..19e6a7cb10fc3 100644 --- a/xla/tsl/lib/gtl/int_type_test.cc +++ b/xla/tsl/lib/gtl/int_type_test.cc @@ -275,7 +275,7 @@ TYPED_TEST(IntTypeTest, TestMove) { static NotCopyable Make(int i) { NotCopyable f; f.inttype = TypeParam(i); - f.ptr.reset(new int(i)); + f.ptr = std::make_unique(i); return f; } };