diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-02-15 19:34:44 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-02-15 19:34:44 +0000 |
commit | d0e58e36a9857c45ecdc910ec8db04c21e143db5 (patch) | |
tree | 190bb7c5cf9a0d526691c415e647c9624631da53 /lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | |
parent | 3fdde110eb55116242f9c7dd9e687cbd102beb7c (diff) |
Should not combine ISD::LOCATIONs until we have scheme to remove from
MachineDebugInfo tables.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26216 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/LegalizeDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index a3317fe934..d7c9f16867 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -519,8 +519,8 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) { Ops.push_back(DAG.getConstant(SrcFile, MVT::i32)); // source file id Result = DAG.getNode(ISD::DEBUG_LOC, MVT::Other, Ops); } else { - unsigned Line = dyn_cast<ConstantSDNode>(LineOp)->getValue(); - unsigned Col = dyn_cast<ConstantSDNode>(ColOp)->getValue(); + unsigned Line = cast<ConstantSDNode>(LineOp)->getValue(); + unsigned Col = cast<ConstantSDNode>(ColOp)->getValue(); unsigned ID = DebugInfo->RecordLabel(Line, Col, SrcFile); Ops.push_back(DAG.getConstant(ID, MVT::i32)); Result = DAG.getNode(ISD::DEBUG_LABEL, MVT::Other, Ops); |