https://github.com/Moehre2 created 
https://github.com/llvm/llvm-project/pull/67265

Hi,
i needed a clang/llvm version 11 on a server. Since I don't have superuser 
rights on it, I built the whole llvm-project from the sources. I built it with 
GCC version 11.3.0. It failed near the end. This fix got it working.
Cheers,
Moritz

>From 03f975cab5b67bc08c3e1cfc8d4dfd46cf8e6f7d Mon Sep 17 00:00:00 2001
From: Moritz Timmer <25349452+moeh...@users.noreply.github.com>
Date: Fri, 22 Sep 2023 23:25:56 +0200
Subject: [PATCH] Fix Benchmark 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 0705e219f2fa2a7..6001fb8e0e4833b 100644
--- a/llvm/utils/benchmark/src/benchmark_register.h
+++ b/llvm/utils/benchmark/src/benchmark_register.h
@@ -2,6 +2,7 @@
 #define BENCHMARK_REGISTER_H
 
 #include <vector>
+#include <limits>
 
 #include "check.h"
 

_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to