diff options
author | Chris Lattner <sabre@nondot.org> | 2007-04-08 22:23:26 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-04-08 22:23:26 +0000 |
commit | 921169b103497001e1d22927f4fd1682d43eba57 (patch) | |
tree | 2a5565438d48d711e1846d9ab1a73217e1732532 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | 363a6dfdf77ede7b8a78484a9fc0498f17718c6e (diff) |
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1947414884..304392c0b4 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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)); } |