diff options
| author | David Blaikie <dblaikie@gmail.com> | 2015-11-17 20:38:54 +0000 |
|---|---|---|
| committer | David Blaikie <dblaikie@gmail.com> | 2015-11-17 20:38:54 +0000 |
| commit | 06d5618c49d61fc99e2f8471b6e5f858e2566b53 (patch) | |
| tree | 17b60ddf86f773c9587203ceb5467e5245f16e25 /llvm | |
| parent | 78b37b05557eb2f3c656ee17d1b57e2c785964f1 (diff) | |
| download | bcm5719-llvm-06d5618c49d61fc99e2f8471b6e5f858e2566b53.tar.gz bcm5719-llvm-06d5618c49d61fc99e2f8471b6e5f858e2566b53.zip | |
Fix -Wunused-function in a non-Win32 build
llvm-svn: 253373
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/unittests/Support/Path.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Support/Path.cpp b/llvm/unittests/Support/Path.cpp index e325f9a1c65..3f626f87888 100644 --- a/llvm/unittests/Support/Path.cpp +++ b/llvm/unittests/Support/Path.cpp @@ -360,6 +360,7 @@ TEST(Support, TempDirectory) { EXPECT_TRUE(!TempDir.empty()); } +#ifdef LLVM_ON_WIN32 static std::string path2regex(std::string Path) { size_t Pos = 0; while ((Pos = Path.find('\\', Pos)) != std::string::npos) { @@ -381,7 +382,6 @@ static std::string path2regex(std::string Path) { }, \ ::testing::ExitedWithCode(0), path2regex(expected)) -#ifdef LLVM_ON_WIN32 TEST(SupportDeathTest, TempDirectoryOnWindows) { // In this test we want to check how system_temp_directory responds to // different values of specific env vars. To prevent corrupting env vars of |

