llvm-project
85eb7259 - [clang] Fix use-after-scope when diagnosting __attribute__((format_matches))

Commit
253 days ago
[clang] Fix use-after-scope when diagnosting __attribute__((format_matches)) I don't think this will ever crash, but asan complains about it. SUMMARY: AddressSanitizer: stack-use-after-scope clang/lib/Sema/SemaChecking.cpp:6925:43 in void (anonymous namespace)::CheckFormatHandler::EmitFormatDiagnostic<clang::CharSourceRange>(clang::PartialDiagnostic, clang::SourceLocation, bool, clang::CharSourceRange, llvm::ArrayRef<clang::FixItHint>) While there switch to stable_sort to not give a flipped error message half of the time.
Author
d0k d0k
Committer
d0k d0k
Parents
Loading