================
@@ -155,11 +158,13 @@ PathDiagnosticPieceRef
UseAfterLifetimeEndBRVisitor::getEndPath(const ExplodedNode *N,
BugReporterContext &BRC,
PathSensitiveBugReport &BR) {
- auto Piece = createSourcePiece(
- N, BRC,
- (llvm::Twine("Lifetime of ") +
- lifetime_modeling::getRegionName(SourceRegion) + " ended here")
- .str());
+ auto Piece =
+ createSourcePiece(N, BRC,
+ (llvm::Twine("Lifetime of ") +
+ SourceRegion->getDescriptiveName(
+ /*UseQuotes=*/true, /*AllowFallback=*/true) +
+ " ended here")
+ .str());
----------------
isuckatcs wrote:
Nit: is there a way to do something with the formatting here for better
readability?
https://github.com/llvm/llvm-project/pull/214245
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits