mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-19 04:29:21 +00:00
fix Load bug
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19987 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
272455b404
commit
c23d696e71
@ -1046,7 +1046,7 @@ unsigned ISel::SelectExpr(SDOperand N) {
|
|||||||
SDOperand Chain = N.getOperand(0);
|
SDOperand Chain = N.getOperand(0);
|
||||||
SDOperand Address = N.getOperand(1);
|
SDOperand Address = N.getOperand(1);
|
||||||
|
|
||||||
assert(DestType == MVT::i64 && "unknown Load dest type");
|
assert(N.getValue(0).getValueType() == MVT::i64 && "unknown Load dest type");
|
||||||
|
|
||||||
if (Address.getOpcode() == ISD::GlobalAddress)
|
if (Address.getOpcode() == ISD::GlobalAddress)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user