Skip to content

Commit 5009d24

Browse files
[Basic] Fix a warning
This patch fixes: clang/lib/Basic/SourceManager.cpp:1979:64: error: 'greater' may not intend to support class template argument deduction [-Werror,-Wctad-maybe-unsupported]
1 parent 71d83bb commit 5009d24

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/Basic/SourceManager.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,8 @@ bool SourceManager::isInTheSameTranslationUnitImpl(
19761976
auto FindSLocEntryAlloc = [this](FileID FID) {
19771977
// Loaded FileIDs are negative, we store the lowest FileID from each
19781978
// allocation, later allocations have lower FileIDs.
1979-
return llvm::lower_bound(LoadedSLocEntryAllocBegin, FID, std::greater{});
1979+
return llvm::lower_bound(LoadedSLocEntryAllocBegin, FID,
1980+
std::greater<FileID>{});
19801981
};
19811982

19821983
// If both are loaded from different AST files.

0 commit comments

Comments
 (0)