[clangd] NFC, avoid potential ODR violation.

This commit is contained in:
Haojian Wu 2021-01-08 13:29:11 +01:00
parent ed23229a64
commit b83b7d0873
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ void MergedIndex::relations(
// Returns true if \p L is (strictly) preferred to \p R (e.g. by file paths). If
// neither is preferred, this returns false.
bool prefer(const SymbolLocation &L, const SymbolLocation &R) {
static bool prefer(const SymbolLocation &L, const SymbolLocation &R) {
if (!L)
return false;
if (!R)