Skip to content

Commit 0ee2201

Browse files
committed
SILOptimizer: correct accidental >= to >
This should be enabled for `fileprivate` classes. Thanks to @slavapestov for pointing out the mistake in the condition!
1 parent 903a06f commit 0ee2201

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Transforms/PruneVTables.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class PruneVTables : public SILModuleTransform {
3131
LLVM_DEBUG(llvm::dbgs() << "PruneVTables inspecting table:\n";
3232
vtable->print(llvm::dbgs()));
3333
if (!M->isWholeModule() &&
34-
vtable->getClass()->getEffectiveAccess() >= AccessLevel::FilePrivate) {
34+
vtable->getClass()->getEffectiveAccess() > AccessLevel::FilePrivate) {
3535
LLVM_DEBUG(llvm::dbgs() << "Ignoring visible table: ";
3636
vtable->print(llvm::dbgs()));
3737
return;

0 commit comments

Comments
 (0)