Skip to content

Commit 25978e1

Browse files
committed
[NFC] Add InputInfo::makeNeedsCascadingRebuild
1 parent 703eece commit 25978e1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

include/swift/Driver/Action.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,11 @@ class IncrementalJobAction : public JobAction {
146146
: status(stat), previousModTime(time) {}
147147

148148
static InputInfo makeNewlyAdded() {
149-
return InputInfo(Status::NewlyAdded, llvm::sys::TimePoint<>::max());
149+
return {Status::NewlyAdded, llvm::sys::TimePoint<>::max()};
150+
}
151+
152+
static InputInfo makeNeedsCascadingRebuild() {
153+
return {Status::NeedsCascadingBuild, llvm::sys::TimePoint<>::min()};
150154
}
151155
};
152156

0 commit comments

Comments
 (0)