[llvm-branch-commits] [libc] c33e5d5 - [libc] Add the missing math_extras.h include (#74259)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Dec 4 11:11:00 PST 2023


Author: Petr Hosek
Date: 2023-12-04T11:02:03-08:00
New Revision: c33e5d59e5dd4f54c3f4cc00d1bedaf644fdb694

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

LOG: [libc] Add the missing math_extras.h include (#74259)

math_extras.h is used in integer_utils.h when building for 32-bit
platforms but the include is missing.

Added: 
    

Modified: 
    libc/src/__support/CMakeLists.txt
    libc/src/__support/integer_utils.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/CMakeLists.txt b/libc/src/__support/CMakeLists.txt
index ba80965b5aaaf..d6dbad661cb73 100644
--- a/libc/src/__support/CMakeLists.txt
+++ b/libc/src/__support/CMakeLists.txt
@@ -189,6 +189,7 @@ add_header_library(
     integer_utils.h
   DEPENDS
     .bit
+    .math_extras
     .number_pair
     libc.src.__support.common
     libc.src.__support.CPP.type_traits

diff  --git a/libc/src/__support/integer_utils.h b/libc/src/__support/integer_utils.h
index 433e99227bcfd..661318f03bfd3 100644
--- a/libc/src/__support/integer_utils.h
+++ b/libc/src/__support/integer_utils.h
@@ -13,6 +13,7 @@
 #include "src/__support/common.h"
 
 #include "bit.h"
+#include "math_extras.h"
 #include "number_pair.h"
 
 #include <stdint.h>


        


More information about the llvm-branch-commits mailing list