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

Bob Wilson bob.wilson at apple.com
Mon Mar 9 10:07:16 PDT 2009


Author: bwilson
Date: Mon Mar  9 12:07:15 2009
New Revision: 66424

URL: http://llvm.org/viewvc/llvm-project?rev=66424&view=rev
Log:
Add a constructor for BuildVectorSDNode and revert the temporary workaround
from 66280.  I was unable to verify this with gcc-3.4.6, but with gcc-3.3 it
avoids the "base class with only non-default constructor in class without
a constructor" warning.  Apparently that warning was promoted to an error
in gcc-3.4.

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=66424&r1=66423&r2=66424&view=diff

==============================================================================
--- llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h (original)
+++ llvm/trunk/include/llvm/CodeGen/SelectionDAGNodes.h Mon Mar  9 12:07:15 2009
@@ -1114,10 +1114,6 @@
   friend struct ilist_traits<SDNode>;
 
 public:
-  
-  /// Default SDNode constructor.
-  SDNode() {}
-    
   //===--------------------------------------------------------------------===//
   //  Accessors
   //
@@ -1936,6 +1932,8 @@
 /// BuildVectorSDNode - A "pseudo-class" with methods for operating on
 /// BUILD_VECTORs.
 class BuildVectorSDNode : public SDNode {
+  // These are constructed as SDNodes and then cast to BuildVectorSDNodes.
+  explicit BuildVectorSDNode();        // Do not implement
 public:
   /// isConstantSplat - Check if this is a constant splat, and if so, find the
   /// smallest element size that splats the vector.  If MinSplatBits is





More information about the llvm-commits mailing list