Commit 58a8710
Get the type's definition in CompInfo::from_ty
In llvm/llvm-project#147835, Clang's AST changed
so that a TagType's decl will not necessarily refer to the type's
definition, but to the exact declaration which produced the type.
For example, in
typedef struct S T;
struct S {
int x;
};
the 'struct S' type would refer to the incomplete type decl in the
typedef, causing CompInfo to fail to see the type's definition.
This patch inserts a call to use the definition when available. It fixes
the original test case in
#3275 and most of the
test failures caused by the Clang change but not all.1 parent d0e7d6b commit 58a8710
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1269 | 1269 | | |
1270 | 1270 | | |
1271 | 1271 | | |
| 1272 | + | |
| 1273 | + | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
1272 | 1278 | | |
1273 | 1279 | | |
1274 | 1280 | | |
| |||
0 commit comments