From 6b3ad0a00275f309ba7e8b0bc6e584a635e0170a Mon Sep 17 00:00:00 2001 From: yglukhov Date: Sat, 15 Mar 2014 23:01:25 +0200 Subject: [PATCH] Update configfile.cpp Fix of a mistake, making it impossible to use config file in current dir. --- driver/configfile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver/configfile.cpp b/driver/configfile.cpp index 0fa6b7389be..6ae6fed0240 100644 --- a/driver/configfile.cpp +++ b/driver/configfile.cpp @@ -102,7 +102,7 @@ bool ConfigFile::locate(llvm::SmallString<128> &p, const char* argv0, void* main // temporary configuration // try the current working dir - if (sys::fs::current_path(p)) + if (!sys::fs::current_path(p)) { sys::path::append(p, filename); if (sys::fs::exists(p.str()))