REASON: Without a default ctor we cannot do "new Selector[xxx]" and similar
operations with ADTs that need to default constructor selectors.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@50534
91177308-0d34-0410-b5e6-
96231b3b80d8
public:
friend class SelectorTable; // only the SelectorTable can create these.
+ /// The default ctor should only be used when creating data structures that
+ /// will contain selectors.
+ Selector() : InfoPtr(0) {}
+
IdentifierInfo *getAsIdentifierInfo() const {
if (getIdentifierInfoFlag())
return reinterpret_cast<IdentifierInfo *>(InfoPtr & ~ArgFlags);