vsavchenko added inline comments.
================ Comment at: clang/lib/StaticAnalyzer/Core/BasicValueFactory.cpp:210 + "repeated elements"); + BaseSpecSeen.insert(BaseType); } ---------------- Containers like `map` and `set` usually return a pair for `insert`, where the second element tells us whether that element was inserted or was already there. It is usually a bad practice to use `find` in the vicinity of `insert` for this very reason, you double the work. Also, a not about this whole part of the code, if it's done only for assertions, none of this code should be executed in the build without assertions. You'll need to extract this into a function that you call from assert. It means that in release builds it will be unused and should be marked with `LLVM_MAYBE_UNUSED`. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D95877/new/ https://reviews.llvm.org/D95877 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits