mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-14 15:28:20 +00:00
Fix a major bug in lli
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4289 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -936,7 +936,7 @@ static void StoreValueToMemory(GenericValue Val, GenericValue *Ptr,
|
|||||||
Ptr->Untyped[7] = (Val.ULongVal >> 56) & 255;
|
Ptr->Untyped[7] = (Val.ULongVal >> 56) & 255;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
cout << "Cannot load value of type " << Ty << "!\n";
|
cout << "Cannot store value of type " << Ty << "!\n";
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
switch (Ty->getPrimitiveID()) {
|
switch (Ty->getPrimitiveID()) {
|
||||||
@@ -967,7 +967,7 @@ static void StoreValueToMemory(GenericValue Val, GenericValue *Ptr,
|
|||||||
Ptr->Untyped[0] = (Val.ULongVal >> 56) & 255;
|
Ptr->Untyped[0] = (Val.ULongVal >> 56) & 255;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
cout << "Cannot load value of type " << Ty << "!\n";
|
cout << "Cannot store value of type " << Ty << "!\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -975,7 +975,8 @@ static void StoreValueToMemory(GenericValue Val, GenericValue *Ptr,
|
|||||||
static void executeStoreInst(StoreInst &I, ExecutionContext &SF) {
|
static void executeStoreInst(StoreInst &I, ExecutionContext &SF) {
|
||||||
GenericValue Val = getOperandValue(I.getOperand(0), SF);
|
GenericValue Val = getOperandValue(I.getOperand(0), SF);
|
||||||
GenericValue SRC = getOperandValue(I.getPointerOperand(), SF);
|
GenericValue SRC = getOperandValue(I.getPointerOperand(), SF);
|
||||||
StoreValueToMemory(Val, (GenericValue *)SRC.PointerVal, I.getType());
|
StoreValueToMemory(Val, (GenericValue *)SRC.PointerVal,
|
||||||
|
I.getOperand(0)->getType());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user