Commit 1759f3b
authored
[flang] Improve error messages about overflowed integer conversions (llvm#110031)
When an INTEGER conversion to a smaller kind overflows in constant
folding, report the truncated value so that it makes more sense later if
it shows up in other messages.1 parent b5aea32 commit 1759f3b
File tree
2 files changed
+5
-2
lines changed- flang
- lib/Evaluate
- test/Evaluate
2 files changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1736 | 1736 | | |
1737 | 1737 | | |
1738 | 1738 | | |
1739 | | - | |
1740 | | - | |
| 1739 | + | |
| 1740 | + | |
| 1741 | + | |
1741 | 1742 | | |
1742 | 1743 | | |
1743 | 1744 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
195 | 197 | | |
196 | 198 | | |
197 | 199 | | |
| |||
0 commit comments