[llvm-commits] CVS: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
Chris Lattner
sabre at nondot.org
Wed Apr 12 09:46:19 PDT 2006
On Wed, 12 Apr 2006, Reid Spencer wrote:
> Make sure both member variables are initialized in the default constructor
> for SDOperand. This gets rid of numerous warnings in lib/CodeGen and
> lib/Target when compiled with GCC 4.0.2
It's lame when we have to sacrifice (even small amounts of) performance to
work around buggy compiler warnings. :(
-Chris
> Diffs of the changes: (+1 -1)
>
> SelectionDAGNodes.h | 2 +-
> 1 files changed, 1 insertion(+), 1 deletion(-)
>
>
> Index: llvm/include/llvm/CodeGen/SelectionDAGNodes.h
> diff -u llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.128 llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.129
> --- llvm/include/llvm/CodeGen/SelectionDAGNodes.h:1.128 Tue Apr 11 16:30:42 2006
> +++ llvm/include/llvm/CodeGen/SelectionDAGNodes.h Wed Apr 12 11:44:15 2006
> @@ -609,7 +609,7 @@
> SDNode *Val; // The node defining the value we are using.
> unsigned ResNo; // Which return value of the node we are using.
>
> - SDOperand() : Val(0) {}
> + SDOperand() : Val(0), ResNo(0) {}
> SDOperand(SDNode *val, unsigned resno) : Val(val), ResNo(resno) {}
>
> bool operator==(const SDOperand &O) const {
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-commits
mailing list