[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*

Alexandru Ionut Diaconescu alexandruionutdiaconescu at gmail.com
Thu Dec 20 02:39:44 PST 2012

Hello John,

I was following your procedures and I isolated the problem. The problem are
represented by the basic blocks with only one elements.

for (Function::iterator II = F.begin(), EE = F.end(); II != EE; ++II, ++ii)
BasicBlock* BB=II;

if (BB->getTerminator())
        Instruction* current = BB->getTerminator();

        Instruction* previous;

            previous = current->getPrevNode();

        if (ok)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121220/41659d7e/attachment.html>

More information about the llvm-dev mailing list