Skip to content

Commit e5d15c1

Browse files
authored
[NFC][SpecialCaseList] Make default version 2 instead of max() (#162398)
This way we can roll out new breaking features as opt-int. E.g. "#!special-case-list-v3" will enabled something new. Nothing to enabled yet, but with pinpointed default it's an option. Follow up #162350.
1 parent 01a8f9b commit e5d15c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Support/SpecialCaseList.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ SpecialCaseList::addSection(StringRef SectionStr, unsigned FileNo,
150150

151151
bool SpecialCaseList::parse(unsigned FileIdx, const MemoryBuffer *MB,
152152
std::string &Error) {
153-
unsigned long long Version = std::numeric_limits<unsigned long long>::max();
153+
unsigned long long Version = 2;
154154

155155
StringRef Header = MB->getBuffer();
156156
if (Header.consume_front("#!special-case-list-v"))

0 commit comments

Comments
 (0)