diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2019-08-30 16:56:26 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2019-08-30 16:56:26 +0000 |
commit | 122705b91196cfb905d724a39e0cd8c269a9c9a4 (patch) | |
tree | cb9edc7088e24b5c5ecce2972cd9bab73157fc14 /clang/lib/Serialization/ModuleManager.cpp | |
parent | fd7569c8e366ceb89698a2a3a1b29c6365a2450e (diff) | |
download | bcm5719-llvm-122705b91196cfb905d724a39e0cd8c269a9c9a4.tar.gz bcm5719-llvm-122705b91196cfb905d724a39e0cd8c269a9c9a4.zip |
FileManager: Remove ShouldCloseOpenFile argument from getBufferForFile, NFC
Remove this dead code. We always close it.
llvm-svn: 370488
Diffstat (limited to 'clang/lib/Serialization/ModuleManager.cpp')
-rw-r--r-- | clang/lib/Serialization/ModuleManager.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clang/lib/Serialization/ModuleManager.cpp b/clang/lib/Serialization/ModuleManager.cpp index 878ee46382b..4b9f20fca4f 100644 --- a/clang/lib/Serialization/ModuleManager.cpp +++ b/clang/lib/Serialization/ModuleManager.cpp @@ -185,9 +185,7 @@ ModuleManager::addModule(StringRef FileName, ModuleKind Type, Buf = llvm::MemoryBuffer::getSTDIN(); } else { // Get a buffer of the file and close the file descriptor when done. - Buf = FileMgr.getBufferForFile(NewModule->File, - /*isVolatile=*/false, - /*ShouldClose=*/true); + Buf = FileMgr.getBufferForFile(NewModule->File, /*isVolatile=*/false); } if (!Buf) { |