From dddcf3014aa094d3ecd0430511a5c10045fefbd6 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 19 Jan 2023 22:49:31 -0800 Subject: [PATCH] [ADT,Support] Include compiler.h This restores builds with gcc-9, which does not have __has_builtin. --- llvm/include/llvm/ADT/bit.h | 1 + llvm/include/llvm/Support/MathExtras.h | 1 + 2 files changed, 2 insertions(+) diff --git a/llvm/include/llvm/ADT/bit.h b/llvm/include/llvm/ADT/bit.h index 4ea6ad0..db833a5 100644 --- a/llvm/include/llvm/ADT/bit.h +++ b/llvm/include/llvm/ADT/bit.h @@ -14,6 +14,7 @@ #ifndef LLVM_ADT_BIT_H #define LLVM_ADT_BIT_H +#include "llvm/Support/Compiler.h" #include #include #include diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h index f4e5950..9777a2b 100644 --- a/llvm/include/llvm/Support/MathExtras.h +++ b/llvm/include/llvm/Support/MathExtras.h @@ -14,6 +14,7 @@ #define LLVM_SUPPORT_MATHEXTRAS_H #include "llvm/ADT/bit.h" +#include "llvm/Support/Compiler.h" #include #include #include -- 2.7.4