Commit 3fa3bc0
committed
[HLSL] Fix OpaqueValueExpr handling in InitListExpr
The OpaqueValueVisitor was not correctly traversing the AST to find all
OpaqueValueExprs. This resulted in some expressions not being correctly
initialized. This change fixes the visitor to correctly traverse the AST.
A test for this change will be included as part of the work in
llvm#156075.
See discussion in
https://github.com/llvm/llvm-project/pull/156075/files#r2317231524.1 parent 51163c5 commit 3fa3bc0
1 file changed
+18
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
828 | 828 | | |
829 | 829 | | |
830 | 830 | | |
831 | | - | |
| 831 | + | |
| 832 | + | |
832 | 833 | | |
833 | 834 | | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
834 | 843 | | |
835 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
836 | 852 | | |
837 | 853 | | |
838 | 854 | | |
| |||
0 commit comments