rnkovacs added inline comments.
================ Comment at: lib/StaticAnalyzer/Checkers/DanglingInternalBufferChecker.cpp:126 + NewSet = F.add(NewSet, RawPtr.getAsSymbol()); + if (!NewSet.isEmpty()) { + State = State->set<RawPtrMap>(ObjRegion, NewSet); ---------------- xazax.hun wrote: > Is it possible here the set to be empty? We just added a new element to it > above. Maybe turn this into an assert or just omit this if it is impossible? I'm not sure whether `add()` can fail. I turned it into an assert now and will see if it ever fails. https://reviews.llvm.org/D49057 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits