Commit 204c03e
authored
[CIR] Treat cir.record class and struct types equivalently. (#1564)
When we create a `cir.record` type, we track the `RecordKind` according
to whether the source code declared the type using `struct` or `class`
even though these are semantically equivalent. The distinction is used
in naming the type when we lower to the LLVM dialect.
This change updates the code to remove the last place where we were
handling class and struct records differently.1 parent cdef49c commit 204c03e
File tree
2 files changed
+1
-13
lines changed- clang
- lib/CIR/Dialect/IR
- test/CIR/IR
2 files changed
+1
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3613 | 3613 | | |
3614 | 3614 | | |
3615 | 3615 | | |
3616 | | - | |
3617 | | - | |
3618 | | - | |
3619 | | - | |
| 3616 | + | |
3620 | 3617 | | |
3621 | 3618 | | |
3622 | 3619 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | 7 | | |
10 | 8 | | |
11 | 9 | | |
| |||
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | 15 | | |
0 commit comments