Commit 1d48cd8
committed
Move target triple check before translation
Check that the target triple is supported before LLVM to SPIR-V
translation, rather than during translation. This allows us to
gracefully report InvalidTargetTriple instead of failing the target
triple assertion in PreprocessMetadata.cpp.1 parent 21e0587 commit 1d48cd8
File tree
2 files changed
+38
-3
lines changed- lib/SPIRV
- test/negative
2 files changed
+38
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1248 | 1248 | | |
1249 | 1249 | | |
1250 | 1250 | | |
1251 | | - | |
1252 | | - | |
1253 | | - | |
1254 | 1251 | | |
1255 | 1252 | | |
1256 | 1253 | | |
| |||
1759 | 1756 | | |
1760 | 1757 | | |
1761 | 1758 | | |
| 1759 | + | |
| 1760 | + | |
| 1761 | + | |
| 1762 | + | |
| 1763 | + | |
| 1764 | + | |
| 1765 | + | |
| 1766 | + | |
| 1767 | + | |
| 1768 | + | |
| 1769 | + | |
| 1770 | + | |
1762 | 1771 | | |
1763 | 1772 | | |
| 1773 | + | |
| 1774 | + | |
| 1775 | + | |
1764 | 1776 | | |
1765 | 1777 | | |
1766 | 1778 | | |
| |||
1776 | 1788 | | |
1777 | 1789 | | |
1778 | 1790 | | |
| 1791 | + | |
| 1792 | + | |
| 1793 | + | |
1779 | 1794 | | |
1780 | 1795 | | |
1781 | 1796 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
0 commit comments