-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport LLVM patch to fix LLVM build on GCC 11
GCC 11 has changed header dependencies again, so the build of LLVM fails because <limits> wasn't being included when it should be. This is already fixed upstream in LLVM 12.
- Loading branch information
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
From b498303066a63a203d24f739b2d2e0e56dca70d1 Mon Sep 17 00:00:00 2001 | ||
From: serge-sans-paille <sguelton@redhat.com> | ||
Date: Tue, 10 Nov 2020 14:55:25 +0100 | ||
Subject: [PATCH] [nfc] Fix missing include | ||
|
||
--- | ||
llvm/utils/benchmark/src/benchmark_register.h | 1 + | ||
1 file changed, 1 insertion(+) | ||
|
||
diff --git a/llvm/utils/benchmark/src/benchmark_register.h b/llvm/utils/benchmark/src/benchmark_register.h | ||
index 0705e219f2fa..4caa5ad4da07 100644 | ||
--- a/utils/benchmark/src/benchmark_register.h | ||
+++ b/utils/benchmark/src/benchmark_register.h | ||
@@ -1,6 +1,7 @@ | ||
#ifndef BENCHMARK_REGISTER_H | ||
#define BENCHMARK_REGISTER_H | ||
|
||
+#include <limits> | ||
#include <vector> | ||
|
||
#include "check.h" |