Ack: Fix bug in previous checkin.

llvm-svn: 4526
This commit is contained in:
Chris Lattner 2002-11-04 05:50:42 +00:00
parent 4262f815b5
commit 0544dadbee
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,7 @@ Value *ConvertExpressionToType(Value *V, const Type *Ty, ValueMapCache &VMC) {
Instruction *I = dyn_cast<Instruction>(V); Instruction *I = dyn_cast<Instruction>(V);
if (I == 0) { if (I == 0) {
Constant *CPV = cast<Constant>(V)) { Constant *CPV = cast<Constant>(V);
// Constants are converted by constant folding the cast that is required. // Constants are converted by constant folding the cast that is required.
// We assume here that all casts are implemented for constant prop. // We assume here that all casts are implemented for constant prop.
Value *Result = ConstantFoldCastInstruction(CPV, Ty); Value *Result = ConstantFoldCastInstruction(CPV, Ty);