From 72ef4510b66d084749fcc1ccade5158b6fedbed5 Mon Sep 17 00:00:00 2001 From: Haojian Wu Date: Tue, 22 Jan 2019 12:21:25 +0000 Subject: [PATCH] [clangd] Fix the `-Wtype-limits` warning, NFC The assertion is always true, and triggers a compiler warning, so remove it. llvm-svn: 351809 --- clang-tools-extra/clangd/index/Merge.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/clang-tools-extra/clangd/index/Merge.cpp b/clang-tools-extra/clangd/index/Merge.cpp index 77a67cb03e09..d967db8a7feb 100644 --- a/clang-tools-extra/clangd/index/Merge.cpp +++ b/clang-tools-extra/clangd/index/Merge.cpp @@ -102,7 +102,6 @@ void MergedIndex::refs(const RefsRequest &Req, Callback(O); --Remaining; }); - assert(Remaining >= 0); if (Remaining == 0) return; // We return less than Req.Limit if static index returns more refs for dirty