<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 5/27/15 8:12 AM, Hui Zhang wrote:<br>
    </div>
    <blockquote
cite="mid:CAHUsaRFpztw7Jr3gNtO3rxJdO-ph+qegMiJt_ZTdM4=TiqRtXQ@mail.gmail.com"
      type="cite">
      <meta http-equiv="Context-Type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div class="gmail_default">Hello, Everyone<br>
          <br>
        </div>
        <div class="gmail_default">I'm using llvm 3.6 DIBuilder module
          to build the debug information for Chapel language(the
          Chapel-llvm front end works fine). When I run the test
          program, I got these assertions failed:<br>
          !718<br>
          Expected no forward declarations!<br>
          !719<br>
          Expected no forward declarations!<br>
          !720<br>
          Expected no forward declarations!<br>
          !721<br>
          Expected no forward declarations!<br>
          !722<br>
          All nodes should be resolved!<br>
          !716<br>
          <br>
        </div>
        <div class="gmail_default">How should I debug it since the
          bitcode file isn't generated and I can't see what exactly
          those MDNodes represent...<br>
        </div>
      </div>
    </blockquote>
    <br>
    You can probably disable the pass that verifies the LLVM bitcode. 
    If you're using opt, there's a command-line option for that (use
    --help-hidden to find it).  If you're using a custom tool, you'll
    either need to find the option or modify its source code to disable
    it.<br>
    <br>
    Alternatively, run the program through a debugger so that you break
    into the debugger when it hits the assertion.  You can then use the
    debugger to examine the IR (using the dump() methods of various LLVM
    classes) and see what is causing the problem.<br>
    <br>
    Regards,<br>
    <br>
    John Criswell<br>
    <br>
    <blockquote
cite="mid:CAHUsaRFpztw7Jr3gNtO3rxJdO-ph+qegMiJt_ZTdM4=TiqRtXQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default"><br>
        </div>
        <div class="gmail_default">Any information would be great
          appreciated, not found any useful posts online  yet<br>
          <br>
        </div>
        <div class="gmail_default">Thanks a lot !<br>
        </div>
        <br>
        -- <br>
        <div class="gmail_signature">Best regards<br>
          <br>
          <br>
          Hui Zhang<br>
        </div>
      </div>
      <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>
    <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="https://urldefense.proofpoint.com/v2/url?u=http-3A__www.cs.rochester.edu_u_criswell&d=AwMD-g&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=b30c3bGP9Ndhdkow8Qc7mfYpN2awQbO6jZWKRv3pBKk&s=sRwyg42M3cqpWCTW3eCbk8g0LqSG3-O8g_Lfr7XnPug&e=">http://www.cs.rochester.edu/u/criswell</a></pre>
  </body>
</html>