File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ class CompileJobCacheResult : public llvm::cas::ObjectProxy {
50
50
Output getOutput (size_t I) const ;
51
51
52
52
// / Retrieves a specific output specified by \p Kind, if it exists.
53
- llvm::Optional <Output> getOutput (file_types::ID Kind) const ;
53
+ std::optional <Output> getOutput (file_types::ID Kind) const ;
54
54
55
55
// / Print this result to \p OS.
56
56
llvm::Error print (llvm::raw_ostream &OS);
Original file line number Diff line number Diff line change @@ -74,15 +74,15 @@ CompileJobCacheResult::Output CompileJobCacheResult::getOutput(size_t I) const {
74
74
return Output{getOutputObject (I), getOutputKind (I)};
75
75
}
76
76
77
- Optional <CompileJobCacheResult::Output>
77
+ std::optional <CompileJobCacheResult::Output>
78
78
CompileJobCacheResult::getOutput (file_types::ID Kind) const {
79
79
size_t Count = getNumOutputs ();
80
80
for (size_t I = 0 ; I < Count; ++I) {
81
81
file_types::ID K = getOutputKind (I);
82
82
if (Kind == K)
83
83
return Output{getOutputObject (I), Kind};
84
84
}
85
- return None ;
85
+ return {} ;
86
86
}
87
87
88
88
Error CompileJobCacheResult::print (llvm::raw_ostream &OS) {
You can’t perform that action at this time.
0 commit comments