[llvm-branch-commits] [libcxx] release/19.x: [libc++] Add missing include to three_way_comp_ref_type.h (PR #106265)
Tobias Hieta via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Sun Sep 1 01:11:16 PDT 2024
https://github.com/tru updated https://github.com/llvm/llvm-project/pull/106265
>From 6883c490e04a0f681b95e32eaa74aa82458bdb28 Mon Sep 17 00:00:00 2001
From: Louis Dionne <ldionne.2 at gmail.com>
Date: Tue, 27 Aug 2024 14:22:25 -0400
Subject: [PATCH] [libc++] Add missing include to three_way_comp_ref_type.h
We were using a `_LIBCPP_ASSERT_FOO` macro without including `<__assert>`.
rdar://134425695
(cherry picked from commit 0df78123fdaed39d5135c2e4f4628f515e6d549d)
---
libcxx/include/__algorithm/three_way_comp_ref_type.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/libcxx/include/__algorithm/three_way_comp_ref_type.h b/libcxx/include/__algorithm/three_way_comp_ref_type.h
index 70c5818976f075..5702a1fee08262 100644
--- a/libcxx/include/__algorithm/three_way_comp_ref_type.h
+++ b/libcxx/include/__algorithm/three_way_comp_ref_type.h
@@ -9,6 +9,7 @@
#ifndef _LIBCPP___ALGORITHM_THREE_WAY_COMP_REF_TYPE_H
#define _LIBCPP___ALGORITHM_THREE_WAY_COMP_REF_TYPE_H
+#include <__assert>
#include <__compare/ordering.h>
#include <__config>
#include <__utility/declval.h>
More information about the llvm-branch-commits
mailing list