Skip to content

Commit 755ead0

Browse files
committed
Update unit test
1 parent 9ed87da commit 755ead0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/unittests/Analysis/CaptureTrackingTest.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,9 @@ TEST(CaptureTracking, MaxUsesToExplore) {
7777
struct CollectingCaptureTracker : public CaptureTracker {
7878
SmallVector<const Use *, 4> Captures;
7979
void tooManyUses() override { }
80-
std::optional<CaptureComponents> captured(const Use *U,
81-
CaptureInfo CI) override {
80+
Action captured(const Use *U, CaptureInfo CI) override {
8281
Captures.push_back(U);
83-
return continueDefault(CI);
82+
return Continue;
8483
}
8584
};
8685

0 commit comments

Comments
 (0)