summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
Diffstat (limited to 'utils')
-rw-r--r--utils/not/not.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/utils/not/not.cpp b/utils/not/not.cpp
index 45322ecffc..13803dc867 100644
--- a/utils/not/not.cpp
+++ b/utils/not/not.cpp
@@ -16,8 +16,7 @@ int main(int argc, const char **argv) {
std::string Program = sys::FindProgramByName(argv[1]);
std::string ErrMsg;
- int Result =
- sys::ExecuteAndWait(sys::Path(Program), argv + 1, 0, 0, 0, 0, &ErrMsg);
+ int Result = sys::ExecuteAndWait(Program, argv + 1, 0, 0, 0, 0, &ErrMsg);
if (Result < 0) {
errs() << "Error: " << ErrMsg << "\n";
return 1;