Fix failure in get_filecheck_path when filecheck is None

If the path was not specified (and it's None), lexists throws an exception rather than returning False. get_filecheck_path now checks whether filecheck is set before calling lexists

llvm-svn: 344410
This commit is contained in:
Stella Stamenova 2018-10-12 20:00:20 +00:00
parent 307f5ae898
commit 8003485cbf
1 changed files with 1 additions and 1 deletions

View File

@ -188,5 +188,5 @@ def get_filecheck_path():
"""
Get the path to the FileCheck testing tool.
"""
if os.path.lexists(filecheck):
if filecheck and os.path.lexists(filecheck):
return filecheck