[all-commits] [llvm/llvm-project] 0993b1: [clang] Clear ASTContext::TUDecl in 'cleanup' for ...
Balázs Benics via All-commits
all-commits at lists.llvm.org
Fri Apr 17 08:02:05 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0993b11a12e1eacd63ae8c84e0a5cff9e3f09ef6
https://github.com/llvm/llvm-project/commit/0993b11a12e1eacd63ae8c84e0a5cff9e3f09ef6
Author: Balázs Benics <benicsbalazs at gmail.com>
Date: 2026-04-17 (Fri, 17 Apr 2026)
Changed paths:
M clang/include/clang/AST/ASTContext.h
M clang/lib/AST/ASTContext.cpp
Log Message:
-----------
[clang] Clear ASTContext::TUDecl in 'cleanup' for easier debugging (#191697)
While the ASTContext has more things inside, I think we should at least
clear the TUDecl so that when traversing the (dangling) AST would
immediately step on the null-dereference instead of chasing dangling
pointers and crash later.
I was bitten by this in #191058.
This commit should be NFC - assuming that people didn't traverse already
dangling ASTs.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list