[all-commits] [llvm/llvm-project] 99fd06: [clang][Sema] Don't try to initialize implicit var...
Ta-Wei Tu via All-commits
all-commits at lists.llvm.org
Tue Mar 30 18:06:02 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 99fd0662278470f5405b8abd79b681b96cac7856
https://github.com/llvm/llvm-project/commit/99fd0662278470f5405b8abd79b681b96cac7856
Author: Ta-Wei Tu <tu.da.wei at gmail.com>
Date: 2021-03-31 (Wed, 31 Mar 2021)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
A clang/test/SemaCXX/PR49534.cpp
Log Message:
-----------
[clang][Sema] Don't try to initialize implicit variable of invalid anonymous union/struct
This fixes https://bugs.llvm.org/show_bug.cgi?id=49534, where the call to the constructor
of the anonymous union is checked and triggers assertion failure when trying to retrieve
the alignment of the `this` argument (which is a union with virtual function).
The extra check for alignment was introduced in D97187.
Reviewed By: tmatheson
Differential Revision: https://reviews.llvm.org/D98548
More information about the All-commits
mailing list