[llvm-commits] [llvm] r66280 - /llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h

Dan Gohman gohman at apple.com
Fri Mar 6 11:02:34 PST 2009


Since this new constructor doesn't actually initialize
any of the SDNode members, anything using it will get an
SDNode with uninitialized contents. Please figure out what
code is attempting to call the default constructor, and fix
it to call one of the existing constructors instead.

Dan

On Mar 6, 2009, at 10:17 AM, Tanya Lattner wrote:

> Author: tbrethou
> Date: Fri Mar  6 12:17:45 2009
> New Revision: 66280
>
> URL: http://llvm.org/viewvc/llvm-project?rev=66280&view=rev
> Log:
> Add default constructor to SDNode to make gcc 3.4.6 happy.
>
> Modified:
>    llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
>
> Modified: llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h?rev=66280&r1=66279&r2=66280&view=diff
>
> =
> =
> =
> =
> =
> =
> =
> =
> ======================================================================
> --- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
> +++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Fri Mar  6  
> 12:17:45 2009
> @@ -1114,6 +1114,10 @@
>   friend struct ilist_traits<SDNode>;
>
> public:
> +
> +  /// Default SDNode constructor.
> +  SDNode() {}
> +
>   // 
> = 
> = 
> =-------------------------------------------------------------------- 
> ===//
>   //  Accessors
>   //
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list