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 | e55ecfb870b2d65cbc913a8d5db34a2934f835d8 (patch) | |
tree | 6d3855cb2cecd653d2828036bc989b088d81f447 | |
parent | d733c17fce3c1c526a3519782da69a907e36f560 (diff) | |
download | bcm5719-llvm-e55ecfb870b2d65cbc913a8d5db34a2934f835d8.tar.gz bcm5719-llvm-e55ecfb870b2d65cbc913a8d5db34a2934f835d8.zip |
Fix for CodeGen/X86/2007-04-08-InlineAsmCrash.ll and PR1314
llvm-svn: 35779
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 1947414884c..304392c0b43 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/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)); } |