[clang] Fix crash with align_value diagnostic reporting (PR #135013)

Aaron Ballman via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 9 07:31:57 PDT 2025


================
@@ -4383,7 +4383,6 @@ static void handleAlignValueAttr(Sema &S, Decl *D, const ParsedAttr &AL) {
 }
 
 void Sema::AddAlignValueAttr(Decl *D, const AttributeCommonInfo &CI, Expr *E) {
-  AlignValueAttr TmpAttr(Context, CI, E);
----------------
AaronBallman wrote:

I can fix those other ones up, but I can't seem to induce the same problems for them so the test coverage will be pro forma rather than showing a behavioral difference.

https://github.com/llvm/llvm-project/pull/135013


More information about the cfe-commits mailing list