Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions llvm/utils/TableGen/Common/OptEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ static int StrCmpOptionName(const char *A, const char *B) {

// Returns true if A is ordered before B.
bool CompareOptionRecords(const Record *A, const Record *B) {
if (A == B)
return false;
// Sentinel options precede all others and are only ordered by precedence.
bool ASent = A->getValueAsDef("Kind")->getValueAsBit("Sentinel");
bool BSent = B->getValueAsDef("Kind")->getValueAsBit("Sentinel");
Expand Down