commit | b5bb7ffa9c40d13b21d1a04aec53a4428a6c02a8 | [log] [tgz] |
---|---|---|
author | Lauro Ramos Venancio <lauro.venancio@gmail.com> | Tue May 15 17:05:43 2007 +0000 |
committer | Lauro Ramos Venancio <lauro.venancio@gmail.com> | Tue May 15 17:05:43 2007 +0000 |
tree | 232f5095791f11c2b65db6295929f9f6f896abf5 | |
parent | f879aab10a39846ac83ab8cbae1e6f8788dca4da [diff] [blame] |
Fix an infinite recursion in GetNegatedExpression. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37086 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index fd2ad5c..da0f8cf 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
@@ -449,7 +449,7 @@ case ISD::FP_ROUND: case ISD::FSIN: return DAG.getNode(Op.getOpcode(), Op.getValueType(), - GetNegatedExpression(Op, DAG)); + GetNegatedExpression(Op.getOperand(0), DAG)); } }