<feed xmlns='http://www.w3.org/2005/Atom'>
<title>slang.git/tests/bugs/ir-null-parent-crash.slang, branch master</title>
<subtitle>Making it easier to work with shaders</subtitle>
<id>https://git.yummers.dev/slang.git/atom?h=master</id>
<link rel='self' href='https://git.yummers.dev/slang.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/'/>
<updated>2018-10-30T21:21:34+00:00</updated>
<entry>
<title>Fix a crash on function-static variables with initializers (#703)</title>
<updated>2018-10-30T21:21:34+00:00</updated>
<author>
<name>Tim Foley</name>
<email>tfoleyNV@users.noreply.github.com</email>
</author>
<published>2018-10-30T21:21:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.yummers.dev/slang.git/commit/?id=098dd5d87ef73528a14b5478616967f16f73a9ad'/>
<id>urn:sha1:098dd5d87ef73528a14b5478616967f16f73a9ad</id>
<content type='text'>
This code path hadn't been used, and it had a crash due to not inserting the basic blocks it created (for initializing the variable) into the parent function. The fix adds a bit more smarts to the `IRBuilder` to help with inserting basic blocks into the flow of a function.

The actual user issue was around `static const` declarations, and it is clear that the code is incorrectly treating a function local `static const` as if it were just `static`. That will need to be fixed in another change.</content>
</entry>
</feed>
