Call SetFile instead of constructing a temp object and assigning to g_program_filespec for Free BSD port.

llvm-svn: 123356
This commit is contained in:
Greg Clayton 2011-01-13 01:25:48 +00:00
parent b332639004
commit 984cb75b2b
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ Host::GetProgramFileSpec ()
{
char *exe_path = new char[exe_path_size];
if (sysctl(exe_path_mib, 4, exe_path, &exe_path_size, NULL, 0) == 0)
g_program_filespec = FileSpec(exe_path, false);
g_program_filespec.SetFile(exe_path, false);
}
#endif
}