[llvm] dddcf30 - [ADT,Support] Include compiler.h
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 19 22:49:37 PST 2023
Author: Kazu Hirata
Date: 2023-01-19T22:49:31-08:00
New Revision: dddcf3014aa094d3ecd0430511a5c10045fefbd6
URL: https://github.com/llvm/llvm-project/commit/dddcf3014aa094d3ecd0430511a5c10045fefbd6
DIFF: https://github.com/llvm/llvm-project/commit/dddcf3014aa094d3ecd0430511a5c10045fefbd6.diff
LOG: [ADT,Support] Include compiler.h
This restores builds with gcc-9, which does not have __has_builtin.
Added:
Modified:
llvm/include/llvm/ADT/bit.h
llvm/include/llvm/Support/MathExtras.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/ADT/bit.h b/llvm/include/llvm/ADT/bit.h
index 4ea6ad051ad8a..db833a50a6163 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 <cstdint>
#include <cstring>
#include <limits>
diff --git a/llvm/include/llvm/Support/MathExtras.h b/llvm/include/llvm/Support/MathExtras.h
index f4e5950ad3511..9777a2b0c05df 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 <cassert>
#include <climits>
#include <cstdint>
More information about the llvm-commits
mailing list