diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-03-01 22:48:51 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-03-01 22:48:51 +0000 |
commit | 3b05d9f4db3399f524fdf206a22771a87fa321b2 (patch) | |
tree | e23c351bf16558ad175e39db7c7f1de82345b07b /utils/TableGen | |
parent | 21a7e3171bbb46a4fa769ac2d7688214168375c7 (diff) | |
download | external_llvm-3b05d9f4db3399f524fdf206a22771a87fa321b2.zip external_llvm-3b05d9f4db3399f524fdf206a22771a87fa321b2.tar.gz external_llvm-3b05d9f4db3399f524fdf206a22771a87fa321b2.tar.bz2 |
In llvm::MemoryBuffer::getFile() remove an unnecessary stat call check.
The sys::fs::is_directory() check is unnecessary because, if the filename is
a directory, the function will fail anyway with the same error code returned.
Remove the check to avoid an unnecessary stat call.
Someone needs to review on windows and see if the check is necessary there or not.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176386 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen')
0 files changed, 0 insertions, 0 deletions