aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/FileManager.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-12-02 17:34:38 -0800
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2020-12-02 17:36:20 -0800
commitb34632201987eed369bb7ef4646f341b901c95b8 (patch)
treef67cb7d7c5212b217d13afc0347f158e1ee10025 /clang/lib/Basic/FileManager.cpp
parent715ba18d3e11bc3636a9d0f701d8e5a2fdf66852 (diff)
downloadllvm-b34632201987eed369bb7ef4646f341b901c95b8.zip
llvm-b34632201987eed369bb7ef4646f341b901c95b8.tar.gz
llvm-b34632201987eed369bb7ef4646f341b901c95b8.tar.bz2
Revert "Frontend: Sink named pipe logic from CompilerInstance down to FileManager"
This reverts commit 3b18a594c7717a328c33b9c1eba675e9f4bd367c, since apparently this doesn't work everywhere. E.g., clang-x86_64-debian-fast/3889 (http://lab.llvm.org:8011/#/builders/109/builds/3889) gives me: ``` + : 'RUN: at line 8' + /b/1/clang-x86_64-debian-fast/llvm.obj/bin/clang -x c /dev/fd/0 -E + cat /b/1/clang-x86_64-debian-fast/llvm.src/clang/test/Misc/dev-fd-fs.c fatal error: file '/dev/fd/0' modified since it was first processed 1 error generated. ```
Diffstat (limited to 'clang/lib/Basic/FileManager.cpp')
-rw-r--r--clang/lib/Basic/FileManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Basic/FileManager.cpp b/clang/lib/Basic/FileManager.cpp
index f3afe6d..c0d3685 100644
--- a/clang/lib/Basic/FileManager.cpp
+++ b/clang/lib/Basic/FileManager.cpp
@@ -489,7 +489,7 @@ FileManager::getBufferForFile(const FileEntry *Entry, bool isVolatile,
uint64_t FileSize = Entry->getSize();
// If there's a high enough chance that the file have changed since we
// got its size, force a stat before opening it.
- if (isVolatile || Entry->isNamedPipe())
+ if (isVolatile)
FileSize = -1;
StringRef Filename = Entry->getName();