newbie with pass registering Problem

Hi Devang,

Did you use static ID ? For example ...

   class VISIBILITY_HIDDEN GVN : public FunctionPass {
     bool runOnFunction(Function &F);
     static char ID; // Pass identification, replacement for typeid
     GVN() : FunctionPass((intptr_t)&ID) { }

Yes, I did. And actually everything was doing fine until I added galib ( Genetic Algorithm library from GAlib: Matthew's Genetic Algorithms Library) to my sourcecode. :frowning: