mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Fix an assertion caused by using inline asm with indirect register inputs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204425 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -6185,7 +6185,7 @@ static void GetRegistersForValue(SelectionDAG &DAG,
|
||||
// types are identical size, use a bitcast to convert (e.g. two differing
|
||||
// vector types).
|
||||
MVT RegVT = *PhysReg.second->vt_begin();
|
||||
if (RegVT.getSizeInBits() == OpInfo.ConstraintVT.getSizeInBits()) {
|
||||
if (RegVT.getSizeInBits() == OpInfo.CallOperand.getValueSizeInBits()) {
|
||||
OpInfo.CallOperand = DAG.getNode(ISD::BITCAST, DL,
|
||||
RegVT, OpInfo.CallOperand);
|
||||
OpInfo.ConstraintVT = RegVT;
|
||||
|
Reference in New Issue
Block a user