When using debug info, don't use first store as variable live point

* We already will have a live point when the variable is declared
This commit is contained in:
baldurk
2022-06-22 12:37:10 +01:00
parent 8838a878e8
commit 2bf91773f3
@@ -314,8 +314,9 @@ void ThreadState::WritePointerValue(Id pointer, const ShaderVariable &val)
// This one is not included in any of the pointers lists above
basechange.after = debugger.GetPointerValue(ids[ptrid]);
// if this is the first local write, mark this variable as becoming alive here
if(firstLocalWrite)
// if this is the first local write when we have no debug info, mark this variable as becoming
// alive here, instead of at its declaration
if(firstLocalWrite && !debugger.HasDebugInfo())
basechange.before.name = "";
m_State->changes.push_back(basechange);