================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to