Commit 5fa4a1f
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 6b6af6b commit 5fa4a1f
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1234 | 1234 | | |
1235 | 1235 | | |
1236 | 1236 | | |
| 1237 | + | |
| 1238 | + | |
| 1239 | + | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
1237 | 1243 | | |
1238 | 1244 | | |
1239 | 1245 | | |
| |||
0 commit comments