Skip to content

Commit 23b2c60

Browse files
committed
[build][fix][x86] Fixes a compiler error on x86 targets
1 parent 33656f6 commit 23b2c60

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

lib/Support/CommandLine.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,8 +1684,10 @@ static int __cdecl OptNameCompare(const std::pair<const char *, Option *> *LHS,
16841684
return strcmp(LHS->first, RHS->first);
16851685
}
16861686

1687-
static int SubNameCompare(const std::pair<const char *, SubCommand *> *LHS,
1688-
const std::pair<const char *, SubCommand *> *RHS) {
1687+
// HLSL Change - __cdecl
1688+
static int __cdecl SubNameCompare(
1689+
const std::pair<const char *, SubCommand *> *LHS,
1690+
const std::pair<const char *, SubCommand *> *RHS) {
16891691
return strcmp(LHS->first, RHS->first);
16901692
}
16911693

0 commit comments

Comments
 (0)