Commit 3808087
Add CharacterLiteral support in trRValue
Character literals ('A', '\n', etc.) were falling through the rvalue
visitor's dyn_cast chain and producing 'unsupported rvalue expression
CharacterLiteral' diagnostics, which became (admit()) in the emitted
Pulse code.
Translate them as IntLit nodes of the appropriate (int) type, matching
how the C standard defines character constants. Verified on MSQuic's
src/core: eliminates all 286 CharacterLiteral diagnostics and reduces
the total admit count from 19,910 to 19,826 (-84).
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent d0bd663 commit 3808087
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
618 | 618 | | |
619 | 619 | | |
620 | 620 | | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
621 | 626 | | |
622 | 627 | | |
623 | 628 | | |
| |||
0 commit comments