search for: somef

Displaying 1 result from an estimated 1 matches for "somef".

Did you mean: some
2009 Mar 11
3
[LLVMdev] opt -O2/-O3 does not Initialize pass?
..."-O1" or less, everything works fine. However, If I call opt with "-O2" or "-O3" then as soon as runOnFunction() is called, the pointer seems to be NULL. Here is a code that shows the problem: namespace { struct InitTest : public FunctionPass { Constant *someF; public: static char ID; // Pass identification, replacement for typeid InitTest() : FunctionPass(&ID) {} virtual bool doInitialization(Module &mdl) { someF = mdl.getOrInsertFunction("test", /* return type */ Type::VoidTy,...