[PATCH] D89450: llvm/utils/benchmark: add missing <limits> inclusion
Sergei Trofimovich via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 15 00:09:08 PDT 2020
trofi created this revision.
Herald added a reviewer: lebedev.ri.
Herald added subscribers: llvm-commits, lebedev.ri.
Herald added a project: LLVM.
trofi requested review of this revision.
Noticed missing header when was building llvm with gcc-11:
llvm-project/llvm/utils/benchmark/src/benchmark_register.h:17:30:
error: 'numeric_limits' is not a member of 'std'
17 | static const T kmax = std::numeric_limits<T>::max();
| ^~~~~~~~~~~~~~
Signed-off-by: Sergei Trofimovich <slyfox at inbox.ru>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D89450
Files:
llvm/utils/benchmark/src/benchmark_register.h
Index: llvm/utils/benchmark/src/benchmark_register.h
===================================================================
--- llvm/utils/benchmark/src/benchmark_register.h
+++ llvm/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"
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89450.298314.patch
Type: text/x-patch
Size: 359 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201015/46801a1e/attachment.bin>
More information about the llvm-commits
mailing list