diff --git a/llvm/lib/MC/MCParser/AsmParser.cpp b/llvm/lib/MC/MCParser/AsmParser.cpp index 2cce8b0e43fc4ffc9cf3eaccb18bd0bc94ddec63..aa07ecb4e5d51cd7776b2efe1a6fed5ca9f196c1 100644 --- a/llvm/lib/MC/MCParser/AsmParser.cpp +++ b/llvm/lib/MC/MCParser/AsmParser.cpp @@ -4030,6 +4030,8 @@ bool AsmParser::ParseDirectiveMSAlign(SMLoc IDLoc, ParseStatementInfo &Info) { return false; } +// We are comparing pointers, but the pointers are relative to a single string. +// Thus, this should always be deterministic. static int RewritesSort (const void *A, const void *B) { const AsmRewrite *AsmRewriteA = static_cast(A); const AsmRewrite *AsmRewriteB = static_cast(B);