i am writing an transformation pass where i want to insert a specific function call. To get this function i need to create a functionType. This type has an int** as first argument. It all worked fine until i build my pass as release build.
The culprit is probably the creation of the int** type. With the debug build getTypeID() give me 15, which is what i expect according to . With the release build getTypeID() yields 72. Which is probably why i get segmentation faults when i try to use it or simply call dump().
I tried creating the Type in different ways:
All seem to give me the same result. Might this be some kind of bug? Any suggestions how to work around this problem?