[llvm-branch-commits] [libcxx] 6883c49 - [libc++] Add missing include to three_way_comp_ref_type.h

Tobias Hieta via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Sep 1 01:11:21 PDT 2024


Author: Louis Dionne
Date: 2024-09-01T10:11:08+02:00
New Revision: 6883c490e04a0f681b95e32eaa74aa82458bdb28

URL: https://github.com/llvm/llvm-project/commit/6883c490e04a0f681b95e32eaa74aa82458bdb28
DIFF: https://github.com/llvm/llvm-project/commit/6883c490e04a0f681b95e32eaa74aa82458bdb28.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
(cherry picked from commit 0df78123fdaed39d5135c2e4f4628f515e6d549d)

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 llvm-branch-commits mailing list