if (BI->isConditional()) {
LatticeVal &BCValue = getValueState(BI->getCondition());
if (BCValue.isUndefined()) {
- BI->setCondition(ConstantBool::getTrue());
+ BCValue.markOverdefined();
BranchesResolved = true;
visit(BI);
}
LatticeVal &SCValue = getValueState(SI->getCondition());
if (SCValue.isUndefined()) {
const Type *CondTy = SI->getCondition()->getType();
- SI->setCondition(Constant::getNullValue(CondTy));
+ // Pick and arbitrary direction for the switch to go.
+ SCValue.markOverdefined();
BranchesResolved = true;
visit(SI);
}