diff options
author | Kazu Hirata <kazu@google.com> | 2023-10-06 13:07:53 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2023-10-06 13:07:53 -0700 |
commit | 5009d249a5ef6548182256ce3e8ece55e8c68987 (patch) | |
tree | 6103c2e7124cc511620158151e3bcb3e11ca2b70 /clang/lib/Basic/SourceManager.cpp | |
parent | 71d83bb426104fb77605382c61968aaf55b537b8 (diff) | |
download | llvm-5009d249a5ef6548182256ce3e8ece55e8c68987.zip llvm-5009d249a5ef6548182256ce3e8ece55e8c68987.tar.gz llvm-5009d249a5ef6548182256ce3e8ece55e8c68987.tar.bz2 |
[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]
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
-rw-r--r-- | clang/lib/Basic/SourceManager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Basic/SourceManager.cpp b/clang/lib/Basic/SourceManager.cpp index a3bd74d..b8e7650 100644 --- a/clang/lib/Basic/SourceManager.cpp +++ b/clang/lib/Basic/SourceManager.cpp @@ -1976,7 +1976,8 @@ bool SourceManager::isInTheSameTranslationUnitImpl( auto FindSLocEntryAlloc = [this](FileID FID) { // Loaded FileIDs are negative, we store the lowest FileID from each // allocation, later allocations have lower FileIDs. - return llvm::lower_bound(LoadedSLocEntryAllocBegin, FID, std::greater{}); + return llvm::lower_bound(LoadedSLocEntryAllocBegin, FID, + std::greater<FileID>{}); }; // If both are loaded from different AST files. |