mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 21:32:39 +00:00
Fix for CodeGen/X86/2007-04-08-InlineAsmCrash.ll and PR1314
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
363a6dfdf7
commit
921169b103
@ -2687,7 +2687,7 @@ void RegsForValue::getCopyToRegs(SDOperand Val, SelectionDAG &DAG,
|
||||
/// values added into it.
|
||||
void RegsForValue::AddInlineAsmOperands(unsigned Code, SelectionDAG &DAG,
|
||||
std::vector<SDOperand> &Ops) const {
|
||||
Ops.push_back(DAG.getConstant(Code | (Regs.size() << 3), MVT::i32));
|
||||
Ops.push_back(DAG.getTargetConstant(Code | (Regs.size() << 3), MVT::i32));
|
||||
for (unsigned i = 0, e = Regs.size(); i != e; ++i)
|
||||
Ops.push_back(DAG.getRegister(Regs[i], RegVT));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user