1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 10:42:39 +01:00

Fix silly error in unittest helper.

llvm-svn: 341505
This commit is contained in:
Zachary Turner 2018-09-05 23:45:48 +00:00
parent 19a1c00664
commit 910d9dfcf8

View File

@ -20,7 +20,7 @@ SmallString<128> llvm::unittest::getInputFileDirectory() {
llvm::sys::fs::make_absolute(Result);
llvm::sys::path::append(Result, "llvm.srcdir.txt");
EXPECT_TRUE(llvm::sys::fs::is_directory(Result))
EXPECT_TRUE(llvm::sys::fs::is_regular_file(Result))
<< "Unit test source directory file does not exist.";
auto File = MemoryBuffer::getFile(Result);