summaryrefslogtreecommitdiffstats
path: root/clang/lib/Serialization/ModuleManager.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-08-30 16:56:26 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2019-08-30 16:56:26 +0000
commit122705b91196cfb905d724a39e0cd8c269a9c9a4 (patch)
treecb9edc7088e24b5c5ecce2972cd9bab73157fc14 /clang/lib/Serialization/ModuleManager.cpp
parentfd7569c8e366ceb89698a2a3a1b29c6365a2450e (diff)
downloadbcm5719-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.cpp4
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) {
OpenPOWER on IntegriCloud