Skip to content

Commit 821a643

Browse files
committed
[indexstore] Fix ABI of indexstore_unit_event_kind_t
Preserve the original numeric constants so that it does not change meaning across versions. This fixes a breakage introduced in 3dab785. rdar://58838243
1 parent 2a8ab8f commit 821a643

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/include/indexstore/indexstore.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,10 @@ INDEXSTORE_PUBLIC bool
158158
indexstore_unit_event_notification_is_initial(indexstore_unit_event_notification_t);
159159

160160
typedef enum {
161-
INDEXSTORE_UNIT_EVENT_REMOVED = 1,
162-
INDEXSTORE_UNIT_EVENT_MODIFIED = 2,
163-
INDEXSTORE_UNIT_EVENT_DIRECTORY_DELETED = 3,
164-
INDEXSTORE_UNIT_EVENT_FAILURE = 4,
161+
INDEXSTORE_UNIT_EVENT_REMOVED = 2,
162+
INDEXSTORE_UNIT_EVENT_MODIFIED = 3,
163+
INDEXSTORE_UNIT_EVENT_DIRECTORY_DELETED = 4,
164+
INDEXSTORE_UNIT_EVENT_FAILURE = 5,
165165
} indexstore_unit_event_kind_t;
166166

167167
INDEXSTORE_PUBLIC indexstore_unit_event_kind_t

0 commit comments

Comments
 (0)