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