[LLVMdev] LLVM segmentation fault / need use Instruction instead of Instruction*
Alexandru Ionut Diaconescu
alexandruionutdiaconescu at gmail.com
Thu Dec 20 02:42:50 PST 2012
I was following your procedures and I isolated the problem. The problem are
represented by the basic blocks with only one element.
for (Function::iterator II = F.begin(), EE = F.end(); II != EE; ++II, ++ii)
Instruction* current = BB->getTerminator();
previous = current->getPrevNode();
It does print AAA, but then I have the segfault. So when I am evaluating
the *current->getPrevNode() *condition, I got the segfault.
Do you know how can I solve this?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev