summaryrefslogtreecommitdiff
path: root/tests/bugs/ir-null-parent-crash.slang
AgeCommit message (Collapse)Author
2018-10-30Fix a crash on function-static variables with initializers (#703)Tim Foley
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.