projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
NFC. Making printOptionValues an API on the parser class.
[oota-llvm.git]
/
lib
/
Support
/
GraphWriter.cpp
diff --git
a/lib/Support/GraphWriter.cpp
b/lib/Support/GraphWriter.cpp
index 3910b12da89bec495ce724434d514cc8b4cf0e25..054df528474e8b442713b575a3d69c3e2c2fd77f 100644
(file)
--- a/
lib/Support/GraphWriter.cpp
+++ b/
lib/Support/GraphWriter.cpp
@@
-105,8
+105,7
@@
struct GraphSession {
SmallVector<StringRef, 8> parts;
Names.split(parts, "|");
for (auto Name : parts) {
- auto P = sys::findProgramByName(Name);
- if (P) {
+ if (ErrorOr<std::string> P = sys::findProgramByName(Name)) {
ProgramPath = *P;
return true;
}