We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ce5df4 commit 5361e10Copy full SHA for 5361e10
clang/lib/Analysis/LifetimeSafety/Facts.cpp
@@ -68,8 +68,7 @@ llvm::StringMap<ProgramPoint> FactManager::getTestPoints() const {
68
for (const Fact *F : BlockFacts) {
69
if (const auto *TPF = F->getAs<TestPointFact>()) {
70
StringRef PointName = TPF->getAnnotation();
71
- assert(AnnotationToPointMap.find(PointName) ==
72
- AnnotationToPointMap.end() &&
+ assert(!AnnotationToPointMap.contains(PointName) &&
73
"more than one test points with the same name");
74
AnnotationToPointMap[PointName] = F;
75
}
0 commit comments