Go to file
David Majnemer 1834dc7520 [FileManager] Don't crash if reading from stdin and stat(".") fails
addAncestorsAsVirtualDirs("<stdin>") quickly returns without doing work
because "<stdin>" has no parent_path.  This violates the expectation
that a subsequent call to getDirectoryFromFile("<stdin>") would succeed.
Instead, it fails because it uses the "." if the file has no path
component.

Fix this by keeping the behavior between addAncestorsAsVirtualDirs and
getDirectoryFromFile symmetric.

llvm-svn: 266089
2016-04-12 16:33:53 +00:00
clang [FileManager] Don't crash if reading from stdin and stat(".") fails 2016-04-12 16:33:53 +00:00
clang-tools-extra [clang-tidy] fix readability-avoid-const-params-in-decls creating invalid code in fix-its 2016-04-12 05:45:13 +00:00
compiler-rt [tsan] Fix a crash with dispatch_source_set_cancel_handler(NULL) on OS X 2016-04-12 15:18:11 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc [AMDGPU] Implement get_local_size for amdgcn--amdhsa triple 2016-04-07 19:54:19 +00:00
libcxx Implement LWG#680, which was missed lo these many moons ago, and was reported as bug #27259. As a drive-by fix, replace the hand-rolled equivalent to addressof in __wrap_iter with the real thing. 2016-04-11 03:54:53 +00:00
libcxxabi Update copyright year to 2016. 2016-03-30 22:40:47 +00:00
libunwind [AArch64] Fix libunwind build when using GNU assembler 2016-02-11 21:22:57 +00:00
lld Make a test a bit stronger. 2016-04-12 14:35:26 +00:00
lldb Fixup TestFdLeak 2016-04-12 13:55:54 +00:00
llgo benchcomp: Add a mode for analyzing rule execution time in ninja log files. 2016-04-08 22:42:22 +00:00
llvm AMDGPU/SI: Fix a mis-compilation of multi-level breaks 2016-04-12 16:10:38 +00:00
openmp [STATS] Remove trailing whitespace in stats source files 2016-04-05 18:48:48 +00:00
polly Do not by default minimize remarks 2016-04-12 16:09:44 +00:00