[llvm-branch-commits] [llvm] fix: added <limits> to fix compile error (PR #67217)

Isitha Subasinghe via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Sep 22 19:24:43 PDT 2023

https://github.com/isubasinghe created https://github.com/llvm/llvm-project/pull/67217

I presume you don't take any PR to release/9.x but thought I might as well open this. 

This header is missing and causes a compile error on my machine. 

>From a53c7f41292861bd26efe35c53c6ba99c3583dfa Mon Sep 17 00:00:00 2001
From: isubasinghe <isubasinghe at student.unimelb.edu.au>
Date: Fri, 31 Dec 2021 15:05:29 +1100
Subject: [PATCH] fix: added <limits> to fix compile error

 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 @@
 #include <vector>
+#include <limits>
 #include "check.h"

More information about the llvm-branch-commits mailing list