mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-01 16:59:14 +00:00
Assert that Process::FindInEnvPath() is passed a relative path.
It misbehaves with absolute paths. (So does path::append().) Goes with clang r235787. llvm-svn: 235788
This commit is contained in:
parent
9cabb129a0
commit
c033a50490
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user