Skip to content

undef through phi doesn't collapse to undef when it ought #1089

@nlewycky

Description

@nlewycky
Bugzilla Link 717
Resolution LATER
Resolved on Mar 01, 2008 20:52
Version trunk
OS All

Extended Description

Expressions involving undef get collapsed into undef properly, except for PHI
nodes. The following code should compile into "ret int undef". Instead, LLVM
produces "ret int 0":

int f()
{
int x = 4;
int y;
if (x == 3) y = 0;
return y;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions