[cfe-dev] ProgramStateManager ctor removed

Anna Zaks ganna at apple.com
Fri Sep 21 10:09:57 PDT 2012

On Sep 21, 2012, at 5:02 AM, Olaf Krzikalla <Olaf.Krzikalla at tu-dresden.de> wrote:

> Hi @clang,
> rev. 158849 removed a ctor from ProgramStateManager which I was using. ProgramStateManager::SubEng* can be 0 according to the doc but without that ctor there are no means to initialize it that way (other than dereferencing a null-pointer at the ctor call). Can I get back my ctor?

Olaf, did you get the revision number right?

That revision removed a template simplifying GDMIndex construction:

template <typename T> struct ProgramStateTrait {
  typedef typename T::data_type data_type;
-  static inline void *GDMIndex() { return &T::TagInt; }

> And a general question: what is the policy regarding potentially dead code in clang? I guess in the meantime there are plenty of tools not part of the clang distribution but built on top of its source code.
> Best regards
> Olaf

More information about the cfe-dev mailing list