[clang] 769e782 - Fix MSVC "truncation from 'int' to 'bool'" warning. NFCI.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 8 10:08:46 PDT 2021
Author: Simon Pilgrim
Date: 2021-07-08T18:08:24+01:00
New Revision: 769e782793391a1ee0d257c8b0c6f43a02321e22
URL: https://github.com/llvm/llvm-project/commit/769e782793391a1ee0d257c8b0c6f43a02321e22
DIFF: https://github.com/llvm/llvm-project/commit/769e782793391a1ee0d257c8b0c6f43a02321e22.diff
LOG: Fix MSVC "truncation from 'int' to 'bool'" warning. NFCI.
Added:
Modified:
clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
Removed:
################################################################################
diff --git a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
index cb4f50ee1ed46..a0e52b1931520 100644
--- a/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
+++ b/clang/tools/clang-offload-bundler/ClangOffloadBundler.cpp
@@ -1144,7 +1144,7 @@ static Error UnbundleArchive() {
StringRef IFName = InputFileNames.front();
ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr =
- MemoryBuffer::getFileOrSTDIN(IFName, -1, false);
+ MemoryBuffer::getFileOrSTDIN(IFName, true, false);
if (std::error_code EC = BufOrErr.getError())
return createFileError(InputFileNames.front(), EC);
More information about the cfe-commits
mailing list