Fix for CodeGen/X86/2007-04-08-InlineAsmCrash.ll and PR1314

llvm-svn: 35779
This commit is contained in:
Chris Lattner 2007-04-08 22:23:26 +00:00
parent d733c17fce
commit e55ecfb870
1 changed files with 1 additions and 1 deletions

View File

@ -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));
}