<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 10/16/15 5:25 AM, Priyanka Bamne via
      llvm-dev wrote:<br>
    </div>
    <blockquote
cite="mid:CAGALC79oa7J0FFUDigsWXPZZHhP54gT+eBO2fOP5vyeM3qLgaw@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">BB->getInstList().insert(&(*i),&(*j) );<br>
        <div>here j is iterator of cloned instruction and i  is iterator
          of original instruction.Since i am doing it on per basic block
          branch inclusion may not be problem.</div>
      </div>
    </blockquote>
    <br>
    There's too little detail here to be helpful.  If you haven't
    already, make sure you're using a Debug+Asserts build of LLVM; the
    asserts in LLVM may provide insight into the problem.<br>
    <br>
    A stack trace might also help.<br>
    <br>
    Make sure you're not cloning the TerminatorInst at the end of the
    basic block (a basic block should only have one TerminatorInst), and
    check that your insertion point is valid.<br>
    <br>
    Regards,<br>
    <br>
    John Criswell<br>
    <br>
    <blockquote
cite="mid:CAGALC79oa7J0FFUDigsWXPZZHhP54gT+eBO2fOP5vyeM3qLgaw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Thanx</div>
        <div>PRiyanka</div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a>
</pre>
    </blockquote>
    <br>
    <br>
    <pre class="moz-signature" cols="72">-- 
John Criswell
Assistant Professor
Department of Computer Science, University of Rochester
<a class="moz-txt-link-freetext" href="http://www.cs.rochester.edu/u/criswell">http://www.cs.rochester.edu/u/criswell</a></pre>
  </body>
</html>