Patch missing 'limits' in facebook-clang-plugins #1407 (#1409)

Summary:
Hopefully resolves https://github.com/facebook/infer/issues/1407

Signed-off-by: Andrew V. Jones <andrewvaughanj@gmail.com>

Pull Request resolved: https://github.com/facebook/infer/pull/1409

Reviewed By: skcho

Differential Revision: D27079201

Pulled By: jvillard

fbshipit-source-id: d5777a35c
master
Andrew V. Jones 4 years ago committed by Facebook GitHub Bot
parent b352b2c61b
commit 0ada579f31

@ -16,6 +16,7 @@ CLANG_PREBUILD_PATCHES=(
"$SCRIPT_DIR/src/err_ret_local_block.patch" "$SCRIPT_DIR/src/err_ret_local_block.patch"
"$SCRIPT_DIR/src/mangle_suppress_errors.patch" "$SCRIPT_DIR/src/mangle_suppress_errors.patch"
"$SCRIPT_DIR/src/AArch64SVEACLETypes.patch" "$SCRIPT_DIR/src/AArch64SVEACLETypes.patch"
"$SCRIPT_DIR/src/benchmark_register.patch"
) )
CLANG_PREFIX="$SCRIPT_DIR/install" CLANG_PREFIX="$SCRIPT_DIR/install"
CLANG_INSTALLED_VERSION_FILE="$SCRIPT_DIR/installed.version" CLANG_INSTALLED_VERSION_FILE="$SCRIPT_DIR/installed.version"

@ -0,0 +1,10 @@
--- a/llvm-project/llvm/utils/benchmark/src/benchmark_register.h
+++ b/llvm-project/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"
Loading…
Cancel
Save