Skip to content

Commit 4030d3f

Browse files
melveraadeshps-mcw
authored andcommitted
[Support] Permit "default" string in AllocToken mode parsing (llvm#169351)
Update getAllocTokenModeFromString() to recognize "default" as a valid mode string, mapping it to `DefaultAllocTokenMode`.
1 parent 8b0031e commit 4030d3f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

llvm/lib/Support/AllocToken.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ llvm::getAllocTokenModeFromString(StringRef Name) {
2424
.Case("random", AllocTokenMode::Random)
2525
.Case("typehash", AllocTokenMode::TypeHash)
2626
.Case("typehashpointersplit", AllocTokenMode::TypeHashPointerSplit)
27+
.Case("default", DefaultAllocTokenMode)
2728
.Default(std::nullopt);
2829
}
2930

0 commit comments

Comments
 (0)