Commit 27d09e6
vporpo
[SandboxIR] Make some instruction constructors private (#119901)
This patch changes the visibility of the constructors of CatchSwitchInst
ResumeInst and SwitchInst to private instead of public. This is similar
to all other Sandbox IR instructions. The constructor is private to
force the user go through the Context create* API.
The issue was exposed by:
#1198241 parent da439d3 commit 27d09e6
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1744 | 1744 | | |
1745 | 1745 | | |
1746 | 1746 | | |
1747 | | - | |
1748 | 1747 | | |
1749 | 1748 | | |
1750 | 1749 | | |
| 1750 | + | |
1751 | 1751 | | |
| 1752 | + | |
1752 | 1753 | | |
1753 | 1754 | | |
1754 | 1755 | | |
| |||
1833 | 1834 | | |
1834 | 1835 | | |
1835 | 1836 | | |
1836 | | - | |
1837 | 1837 | | |
1838 | 1838 | | |
| 1839 | + | |
1839 | 1840 | | |
| 1841 | + | |
1840 | 1842 | | |
1841 | 1843 | | |
1842 | 1844 | | |
| |||
1848 | 1850 | | |
1849 | 1851 | | |
1850 | 1852 | | |
1851 | | - | |
1852 | 1853 | | |
1853 | 1854 | | |
| 1855 | + | |
1854 | 1856 | | |
| 1857 | + | |
1855 | 1858 | | |
1856 | 1859 | | |
1857 | 1860 | | |
| |||
0 commit comments