Skip to content

Commit 29248ea

Browse files
committed
NFC: Remove an unused variable.
1 parent 5914e7a commit 29248ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/DependencyScan/ScanDependencies.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1490,8 +1490,8 @@ static bool diagnoseCycle(CompilerInstance &instance,
14901490
auto beforeSize = openSet.size();
14911491

14921492
auto optionalDepInfo = cache.findDependency(lastOpen.first, lastOpen.second);
1493-
assert(optionalDepInfo.has_value() && "Missing dependency info during cycle diagnosis.");
1494-
auto depInfo = optionalDepInfo.value();
1493+
assert(optionalDepInfo.has_value() &&
1494+
"Missing dependency info during cycle diagnosis.");
14951495

14961496
for (const auto &dep : getAllDependencies(lastOpen, cache)) {
14971497
if (closeSet.count(dep))

0 commit comments

Comments
 (0)