[libcxx-commits] [libcxx] [libc++] Add missing include to thread.h (PR #208740)

Liza Burakova via libcxx-commits libcxx-commits at lists.llvm.org
Fri Jul 10 07:46:20 PDT 2026


https://github.com/liza371 updated https://github.com/llvm/llvm-project/pull/208740

>From 5dc95674e02ca664f94e26cd27a08333b9ef5a68 Mon Sep 17 00:00:00 2001
From: Liza Burakova <liza at chromium.org>
Date: Fri, 10 Jul 2026 14:42:15 +0000
Subject: [PATCH] [libc++] Add missing include to thread.h

Change #195509 removed unused transitive includes, but missed adding
<__type_traits/is_integral.h> to thread.h. This caused errors
to Chromium rolls for libc++ as they caught the missing import.
---
 libcxx/include/__thread/thread.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libcxx/include/__thread/thread.h b/libcxx/include/__thread/thread.h
index 24f62bfe5899e..4fd51c12a6dc2 100644
--- a/libcxx/include/__thread/thread.h
+++ b/libcxx/include/__thread/thread.h
@@ -28,6 +28,7 @@
 #include <__type_traits/enable_if.h>
 #include <__type_traits/invoke.h>
 #include <__type_traits/is_constructible.h>
+#include <__type_traits/is_integral.h>
 #include <__type_traits/is_pointer.h>
 #include <__type_traits/is_same.h>
 #include <__type_traits/remove_cvref.h>



More information about the libcxx-commits mailing list