//
for (BasicBlock::iterator BI = BB->begin(), E = BB->end(); BI != E; ) {
Instruction *Inst = BI++;
- if (Inst->getType() == Type::VoidTy ||
+ if (Inst->getType() == Type::VoidTy ||
+ isa<StructType>(Inst->getType()) ||
isa<TerminatorInst>(Inst))
continue;
} else {
for (BasicBlock::iterator BI = BB->begin(), E = BB->end(); BI != E; ) {
Instruction *Inst = BI++;
- if (Inst->getType() != Type::VoidTy) {
+ if (Inst->getType() != Type::VoidTy &&
+ !isa<StructType>(Inst->getType())) {
LatticeVal &IV = Values[Inst];
if (IV.isConstant() ||
(IV.isUndefined() && !isa<TerminatorInst>(Inst))) {