mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-20 03:23:01 +02:00
Ack: Fix bug in previous checkin.
llvm-svn: 4526
This commit is contained in:
parent
81135c4c57
commit
e27815a482
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user