Skip to content

Commit f317645

Browse files
committed
FollowAllReferences: Use Token::index() to get stable sorting order
1 parent d301b6a commit f317645

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/astutils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ static SmallVector<ReferenceToken> followAllReferencesInternal(const Token* tok,
12671267
{
12681268
struct ReferenceTokenLess {
12691269
bool operator()(const ReferenceToken& x, const ReferenceToken& y) const {
1270-
return x.token < y.token;
1270+
return x.token->index() < y.token->index();
12711271
}
12721272
};
12731273
if (!tok)

0 commit comments

Comments
 (0)