summaryrefslogtreecommitdiff
path: root/libc/src/__support/macros/optimization.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/src/__support/macros/optimization.h')
-rw-r--r--libc/src/__support/macros/optimization.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/src/__support/macros/optimization.h b/libc/src/__support/macros/optimization.h
index 707ecd44a00f..ba4441090cde 100644
--- a/libc/src/__support/macros/optimization.h
+++ b/libc/src/__support/macros/optimization.h
@@ -10,6 +10,7 @@
#ifndef LLVM_LIBC_SRC_SUPPORT_MACROS_OPTIMIZATION_H
#define LLVM_LIBC_SRC_SUPPORT_MACROS_OPTIMIZATION_H
+#include "src/__support/macros/attributes.h" // LIBC_INLINE
#include "src/__support/macros/config.h" // LIBC_HAS_BUILTIN
#include "src/__support/macros/properties/compiler.h" // LIBC_COMPILER_IS_CLANG
@@ -17,7 +18,7 @@
// accidentally pass an integer.
namespace __llvm_libc::details {
template <typename T>
-constexpr LIBC_INLINE bool expects_bool_condition(T value, T expected) {
+LIBC_INLINE constexpr bool expects_bool_condition(T value, T expected) {
return __builtin_expect(value, expected);
}
} // namespace __llvm_libc::details