aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Lex/ModuleMap.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2013-02-19 18:57:53 +0000
committerDan Gohman <dan433584@gmail.com>2013-02-19 18:57:53 +0000
commit22954dbb7e9a8db1225c2ef891ee4905c22e0e00 (patch)
tree5964f06239bd968e32471804a0e872cbc552e2e8 /clang/lib/Lex/ModuleMap.cpp
parent3fa275e6f76a5b7fc24c341a58aa10f8da987e92 (diff)
downloadllvm-22954dbb7e9a8db1225c2ef891ee4905c22e0e00.zip
llvm-22954dbb7e9a8db1225c2ef891ee4905c22e0e00.tar.gz
llvm-22954dbb7e9a8db1225c2ef891ee4905c22e0e00.tar.bz2
Don't trust st_size of a character device. This fixes using
/dev/stdin as an input when stdin is connected to a tty, for example. No test, because it's difficult to write a reasonably portable test for this. /dev/stdin isn't a character device when stdin is redirected from a file or connected to a pipe. llvm-svn: 175542
Diffstat (limited to 'clang/lib/Lex/ModuleMap.cpp')
0 files changed, 0 insertions, 0 deletions