diff options
author | Bob Wilson <bob.wilson@apple.com> | 2009-03-09 17:07:15 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2009-03-09 17:07:15 +0000 |
commit | 3f47ebd94e72b1fd06d25ab3db52b86fb0b87a53 (patch) | |
tree | 7d63f5d4aefc00c66c2d496a8ae97f55cc139481 /include/llvm/CodeGen/SelectionDAGNodes.h | |
parent | 2967db26f43d968b2ee45cedeebac876f160fc40 (diff) | |
download | external_llvm-3f47ebd94e72b1fd06d25ab3db52b86fb0b87a53.zip external_llvm-3f47ebd94e72b1fd06d25ab3db52b86fb0b87a53.tar.gz external_llvm-3f47ebd94e72b1fd06d25ab3db52b86fb0b87a53.tar.bz2 |
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.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAGNodes.h')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index e10e383..93d03f1 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -1114,10 +1114,6 @@ private: friend struct ilist_traits<SDNode>; public: - - /// Default SDNode constructor. - SDNode() {} - //===--------------------------------------------------------------------===// // Accessors // @@ -1936,6 +1932,8 @@ public: /// 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 |