Fix a small bug noticed on code review.

llvm-svn: 31476
This commit is contained in:
Reid Spencer 2006-11-06 18:47:14 +00:00
parent 235aeef9e1
commit c7ed09bef7
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ struct cast_match {
return Op.match(I->getOperand(0));
} else if (ConstantExpr *CE = dyn_cast<ConstantExpr>(V)) {
if (CE->getOpcode() == Instruction::Cast) {
if (DestTy) *DestTy = I->getType();
if (DestTy) *DestTy = CE->getType();
return Op.match(CE->getOperand(0));
}
}