================
@@ -92,7 +92,8 @@ void StringViewConversionsCheck::check(const
MatchFinder::MatchResult &Result) {
// Sanity check. Verify that the redundant expression is the direct source of
// the argument, not part of a larger expression (e.g., std::string(sv) +
// "bar").
- assert(ParamExpr->getSourceRange() == RedundantExpr->getSourceRange());
+ if (ParamExpr->getSourceRange() != RedundantExpr->getSourceRange())
+ return;
----------------
irishrover wrote:
Done
https://github.com/llvm/llvm-project/pull/179027
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits