mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 22:28:18 +00:00
Ack: Fix bug in previous checkin.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4526 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user