[clang] 09ccc55 - Fix [-Werror,-Wsign-compare] error. NFC.
Kai Luo via cfe-commits
cfe-commits at lists.llvm.org
Thu Aug 24 00:58:31 PDT 2023
Author: Kai Luo
Date: 2023-08-24T07:56:43Z
New Revision: 09ccc5563ebe70be2b5a5421df43cd5720ba1f5b
URL: https://github.com/llvm/llvm-project/commit/09ccc5563ebe70be2b5a5421df43cd5720ba1f5b
DIFF: https://github.com/llvm/llvm-project/commit/09ccc5563ebe70be2b5a5421df43cd5720ba1f5b.diff
LOG: Fix [-Werror,-Wsign-compare] error. NFC.
Added:
Modified:
clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
Removed:
################################################################################
diff --git a/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp b/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
index ef28f2f233b844..8100db2aec4090 100644
--- a/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
+++ b/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
@@ -5621,7 +5621,7 @@ TEST(TransferTest, MemberOperatorCallModelsPointerForCallee) {
auto Matches = match(
traverse(TK_AsIs, cxxOperatorCallExpr().bind("call")), ASTCtx);
- ASSERT_EQ(Matches.size(), 2);
+ ASSERT_EQ(Matches.size(), 2UL);
auto *Call1 = Matches[0].getNodeAs<CXXOperatorCallExpr>("call");
auto *Call2 = Matches[1].getNodeAs<CXXOperatorCallExpr>("call");
More information about the cfe-commits
mailing list