Skip to content

Commit 097e877

Browse files
committed
[gardening] Add a missing const to a const method.
1 parent a3552f3 commit 097e877

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/swift/SILOptimizer/Analysis/Analysis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class SILAnalysis : public DeleteNotificationHandler {
104104
void unlockInvalidation() { invalidationLock = false; }
105105

106106
/// Return True if this analysis is locked and should not be invalidated.
107-
bool isLocked() { return invalidationLock; }
107+
bool isLocked() const { return invalidationLock; }
108108

109109
/// Invalidate all information in this analysis.
110110
virtual void invalidate() = 0;

0 commit comments

Comments
 (0)