In function BugReporter::FlushReport, function PathSensitiveBugReporter::generatePathDiagnostics will re-select one report from the equivalence class to construct the PathDiagnostic. It makes the report used to generate PathDiagnostic may be different from the one used in function BugReporter::FlushReport. Changes to the bug report via a BugReporterVisitor may not be reflected when generating report notes or fix-hints.
This patch tries to fix this problem by using the report used to generate PathDiagnostic directly in function BugReporter::FlushReport to generate notes.
Some comments about this field would be welcome!