<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 10/20/13 10:52 PM, edA-qa mort-ora-y
      wrote:<br>
    </div>
    <blockquote cite="mid:5264A4E7.9050501@disemia.com" type="cite">
      <pre wrap="">Is it okay to pass null values to the destinations of
InvokeInst::Create? I checked the code and it looks like it'd be okay,
but the Create method doesn't make them optional, so I'm uncertain.
Perhaps a specific Create function without destinations can be added to
make it clear that it's okay (of course assuming you eventually call
setNormal/UnwindDest).</pre>
    </blockquote>
    <br>
    I'm assuming that you want to create the invoke instruction and then
    fill in the destination basic blocks later.  Is that correct?<br>
    <br>
    It should be okay to create an InvokeInst with "invalid"
    destinations so long as your pass fills them in with valid values
    before it finishes (otherwise, the LLVM verifier pass will
    complain).  I recommend using Undef values or a dummy basic block,
    though, instead of NULL values.  A dummy basic block would probably
    be best.<br>
    <br>
    -- John T.<br>
    <blockquote cite="mid:5264A4E7.9050501@disemia.com" type="cite">
      <pre wrap="">

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
LLVM Developers mailing list
<a class="moz-txt-link-abbreviated" href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a class="moz-txt-link-freetext" href="http://llvm.cs.uiuc.edu">http://llvm.cs.uiuc.edu</a>
<a class="moz-txt-link-freetext" href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>