[clang] [clang-tools-extra] [lld] [lldb] [llvm] [mlir] [NFC][SystemZ][z/OS] Replace isText with OpenFlags in MemoryBuffer::getFile()/getFileOrSTDIN() (PR #228189)
Jay Foad via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 5 02:03:13 PST 2026
================
@@ -194,10 +194,8 @@ bool DXILContainerPDBImpl::runOnModule(Module &M) {
if (!dxil::PdbInPrivate)
return false;
- ErrorOr<std::unique_ptr<MemoryBuffer>> Buf =
- M.getContext().getVirtualFileSystem().getBufferForFile(
- DebugFileName, /*FileSize=*/-1, /*RequiresNullTerminator=*/false,
- /*IsVolatile=*/false, /*IsText=*/false);
+ ErrorOr<std::unique_ptr<MemoryBuffer>> Buf = MemoryBuffer::getFile(
+ DebugFileName, sys::fs::OF_None, /*RequiresNullTerminator=*/false);
----------------
jayfoad wrote:
My Claude thinks you've accidentally reverted f400da27ff9d here.
https://github.com/llvm/llvm-project/pull/228189
More information about the cfe-commits
mailing list