diff --git a/libcxx/include/__hash_table b/libcxx/include/__hash_table --- a/libcxx/include/__hash_table +++ b/libcxx/include/__hash_table @@ -2476,7 +2476,11 @@ __h.get_deleter().__value_constructed = true; __h->__hash_ = __hash; __h->__next_ = nullptr; +#if defined(_LIBCPP_CXX03_LANG) + return _VSTD::move(__h); +#else return __h; +#endif } template diff --git a/libcxx/utils/ci/run-buildbot b/libcxx/utils/ci/run-buildbot --- a/libcxx/utils/ci/run-buildbot +++ b/libcxx/utils/ci/run-buildbot @@ -180,9 +180,8 @@ python3 libcxx/utils/graph_header_deps.py >/dev/null ;; generic-cxx03) - # TODO: Switch to compiling with Clang ToT once issues with https://reviews.llvm.org/D104500 are resolved. - export CC=clang-12 - export CXX=clang++-12 + export CC=clang++-tot + export CXX=clang++-tot clean generate-cmake -C "${MONOREPO_ROOT}/libcxx/cmake/caches/Generic-cxx03.cmake" \ -DLIBCXX_TEST_CONFIG="${MONOREPO_ROOT}/libcxx/test/configs/libcxx-trunk-shared.cfg.in"