From 483660ec8474a9f94f75916d8c58ea973f474945 Mon Sep 17 00:00:00 2001 From: Alexey Bader Date: Tue, 28 Dec 2021 16:36:57 +0300 Subject: [PATCH] [SYCL][Driver][NFC] Make hasFPGABinary help function static --- clang/lib/Driver/Driver.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index b7ab6c7b7f55b..f5460f540e5a8 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -2823,7 +2823,7 @@ static bool runBundler(const SmallVectorImpl &BundlerArgs, return !llvm::sys::ExecuteAndWait(BundlerBinary.get(), BundlerArgs); } -bool hasFPGABinary(Compilation &C, std::string Object, types::ID Type) { +static bool hasFPGABinary(Compilation &C, std::string Object, types::ID Type) { assert(types::isFPGA(Type) && "unexpected Type for FPGA binary check"); // Do not do the check if the file doesn't exist if (!llvm::sys::fs::exists(Object))