[LLVMdev] TerminatorInst and changing successor

Rasha Omar rasha.sala7 at gmail.com
Mon Aug 12 03:35:04 PDT 2013


Thank you Tim
i solved the problem


On 12 August 2013 11:02, Tim Northover <t.p.northover at gmail.com> wrote:

> Hi Rasha,
>
> > Is changing the successors for each basic blocks means by default that
> the
> > Terminator Instruction will be changed or this is another problem should
> be
> > solved?
>
> I think the only way you *can* change a basic block's successors is by
> changing its terminator instruction, so "by default" is the closest
> answer. Though you should make sure your basic block only has one
> terminator afterwards, otherwise the IR is invalid. I'm sure LLVM will
> complain at you if you forget that though.
>
> Cheers.
>
> Tim.
>



-- 
*     Rasha Salah Omar
     Msc Student at E-JUST
     Demonestrator  at Faculty of Computers and Informatics
     Benha University*

*     e-mail: rasha.omar at ejust.edu.eg*
 P* Please consider the environment before printing this email.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130812/a1e822d0/attachment.html>


More information about the llvm-dev mailing list