Commit 66369a9
committed
[lldb][TypeSystemClang] Pass around enum value as uint64_t
The `DWARFASTParserClang` read enum values as `int64_t`s regardless of the enumerators signedness. Then we pass it to `AddEnumerationValueToEnumerationType` and only then do we create an `APSInt` from it. However, there are other places where we read/pass around the enum value as unsigned. This patch makes sure we consistently use `uint64_t`s for the enum value and let `APSInt` take care of signedness. This shouldn't have any observable effect.1 parent 8bd7281 commit 66369a9
File tree
4 files changed
+9
-13
lines changed- lldb/source/Plugins
- SymbolFile
- DWARF
- PDB
- TypeSystem/Clang
4 files changed
+9
-13
lines changedLines changed: 3 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2329 | 2329 | | |
2330 | 2330 | | |
2331 | 2331 | | |
2332 | | - | |
2333 | | - | |
| 2332 | + | |
2334 | 2333 | | |
2335 | 2334 | | |
2336 | 2335 | | |
| |||
2339 | 2338 | | |
2340 | 2339 | | |
2341 | 2340 | | |
2342 | | - | |
2343 | 2341 | | |
2344 | 2342 | | |
2345 | 2343 | | |
| |||
2368 | 2366 | | |
2369 | 2367 | | |
2370 | 2368 | | |
2371 | | - | |
| 2369 | + | |
2372 | 2370 | | |
2373 | | - | |
| 2371 | + | |
2374 | 2372 | | |
2375 | 2373 | | |
2376 | 2374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1155 | 1155 | | |
1156 | 1156 | | |
1157 | 1157 | | |
1158 | | - | |
| 1158 | + | |
1159 | 1159 | | |
1160 | 1160 | | |
1161 | 1161 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8541 | 8541 | | |
8542 | 8542 | | |
8543 | 8543 | | |
8544 | | - | |
8545 | | - | |
8546 | | - | |
8547 | | - | |
8548 | | - | |
8549 | | - | |
| 8544 | + | |
| 8545 | + | |
| 8546 | + | |
| 8547 | + | |
8550 | 8548 | | |
8551 | 8549 | | |
8552 | 8550 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
1043 | | - | |
| 1043 | + | |
1044 | 1044 | | |
1045 | 1045 | | |
1046 | 1046 | | |
| |||
0 commit comments