Sanitize debug source location tracking for implicit branch and return

This patch tries to attach debug location of a branch/return instruction to its predecessor or the closing brace. If none could be found, no debug info should be emitted.
This commit is contained in:
Qingyuan Zheng 2024-08-26 03:53:07 +00:00 committed by arcady-lunarg
parent b1fac200c4
commit a496a34b43
30 changed files with 4713 additions and 4253 deletions

View file

@ -297,6 +297,7 @@ void main()
Store 179 186
Branch 181
181: Label
Line 1 83 0
Return
FunctionEnd
Line 1 16 13
@ -412,6 +413,7 @@ void main()
Store 90 96
Branch 92
92: Label
Line 1 53 0
97: 10(float) Load 90
Line 1 51 0
98: 10(float) Load 56(result)