From 23b2c6090cc51d4fedeaafc2318a056ffdcbcb02 Mon Sep 17 00:00:00 2001 From: Ashley Coleman Date: Tue, 7 Apr 2026 15:25:01 -0600 Subject: [PATCH] [build][fix][x86] Fixes a compiler error on x86 targets --- lib/Support/CommandLine.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index 34a535cab7..18611c152f 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -1684,8 +1684,10 @@ static int __cdecl OptNameCompare(const std::pair *LHS, return strcmp(LHS->first, RHS->first); } -static int SubNameCompare(const std::pair *LHS, - const std::pair *RHS) { +// HLSL Change - __cdecl +static int __cdecl SubNameCompare( + const std::pair *LHS, + const std::pair *RHS) { return strcmp(LHS->first, RHS->first); }