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); }