[llvm] [TableGen] Fix MacOS failure in Option Emitter. (PR #108225)

Rahul Joshi via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 11 06:50:00 PDT 2024


================
@@ -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)
----------------
jurahul wrote:

Changing from array_pod_sort() to std::sort() seems to expose this platform specific difference, but this change should be safe in general.

https://github.com/llvm/llvm-project/pull/108225


More information about the llvm-commits mailing list