[libcxx-commits] [libcxx] 0df7812 - [libc++] Add missing include to three_way_comp_ref_type.h

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Aug 27 11:23:21 PDT 2024


Author: Louis Dionne
Date: 2024-08-27T14:22:49-04:00
New Revision: 0df78123fdaed39d5135c2e4f4628f515e6d549d

URL: https://github.com/llvm/llvm-project/commit/0df78123fdaed39d5135c2e4f4628f515e6d549d
DIFF: https://github.com/llvm/llvm-project/commit/0df78123fdaed39d5135c2e4f4628f515e6d549d.diff

LOG: [libc++] Add missing include to three_way_comp_ref_type.h

We were using a `_LIBCPP_ASSERT_FOO` macro without including `<__assert>`.

rdar://134425695

Added: 
    

Modified: 
    libcxx/include/__algorithm/three_way_comp_ref_type.h

Removed: 
    


################################################################################
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 libcxx-commits mailing list