-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Labels
Description
Related to short-circuiting, this shouldn't always kill the previous declarations, since it might be context-dependent on whether it gets updated or not in assignment expressions:
function void f(int<64> i) {
local x = "bad";
local x2 = (i == 10) || ((x = "good") == "good");
hilti::print(x);
}
Depending on i, x may end up as good or bad. It looks like x = "bad" is added to the kill set after x2, which would be wrong. Happy to punt that for later, but just pointing it out
Originally posted by @evantypanski in #2126 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Todo