Merging r257648:
[oota-llvm.git] / lib / Support / Process.cpp
index 3571cd3132e5ebb34fa0c506a43882677c1ebe20..6dcbb47e87d0a9fbfa4f8dc0f3e2e8ca5d65762c 100644 (file)
@@ -29,6 +29,7 @@ using namespace sys;
 Optional<std::string> Process::FindInEnvPath(const std::string& EnvName,
                                              const std::string& FileName)
 {
+  assert(!path::is_absolute(FileName));
   Optional<std::string> FoundPath;
   Optional<std::string> OptPath = Process::GetEnv(EnvName);
   if (!OptPath.hasValue())