diff options
| author | klensy <klensy@users.noreply.github.com> | 2024-02-21 13:13:50 +0300 |
|---|---|---|
| committer | klensy <klensy@users.noreply.github.com> | 2024-02-21 13:13:50 +0300 |
| commit | 0ce966fd6415773698fd9f85a86ef49dd4225ecf (patch) | |
| tree | 3126924845313c096ec2b0e700566076ba1767cf /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 205cfcba200b13af31c39e67127cb3c07d491702 (diff) | |
| download | rust-0ce966fd6415773698fd9f85a86ef49dd4225ecf.tar.gz rust-0ce966fd6415773698fd9f85a86ef49dd4225ecf.zip | |
llvm-wrapper: fix warning C4305
llvm-wrapper/ArchiveWrapper.cpp(70): warning C4305: 'argument': truncation from 'int' to 'bool' while in llvm 12 signature was static ErrorOr<std::unique_ptr<MemoryBuffer>> getFile(const Twine &Filename, int64_t FileSize = -1, bool RequiresNullTerminator = true, bool IsVolatile = false); https://github.com/llvm/llvm-project/blame/fed41342a82f5a3a9201819a82bf7a48313e296b/llvm/include/llvm/Support/MemoryBuffer.h#L85-L87 in llvm 13 and later it was changed to static ErrorOr<std::unique_ptr<MemoryBuffer>> getFile(const Twine &Filename, bool IsText = false, bool RequiresNullTerminator = true, bool IsVolatile = false); https://github.com/llvm/llvm-project/blame/75e33f71c2dae584b13a7d1186ae0a038ba98838/llvm/include/llvm/Support/MemoryBuffer.h#L86-L88 so code was interpreted as MemoryBuffer::getFile(Path, /*IsText*/true, /*RequiresNullTerminator=*/false), but now will be MemoryBuffer::getFile(Path, /*IsText*/false, /*RequiresNullTerminator=*/false). How that worked before?
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
