<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:michael.haidl@uni-muenster.de" title="Michael Haidl <michael.haidl@uni-muenster.de>"> <span class="fn">Michael Haidl</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - getGlobalID() always returns 0"
   href="https://bugs.llvm.org/show_bug.cgi?id=33923">bug 33923</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>INVALID
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">CC</td>
           <td>
                
           </td>
           <td>michael.haidl@uni-muenster.de
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - getGlobalID() always returns 0"
   href="https://bugs.llvm.org/show_bug.cgi?id=33923#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED INVALID - getGlobalID() always returns 0"
   href="https://bugs.llvm.org/show_bug.cgi?id=33923">bug 33923</a>
              from <span class="vcard"><a class="email" href="mailto:michael.haidl@uni-muenster.de" title="Michael Haidl <michael.haidl@uni-muenster.de>"> <span class="fn">Michael Haidl</span></a>
</span></b>
        <pre>
  683   /// \brief Retrieve the global declaration ID associated with this
  684   /// declaration, which specifies where this Decl was loaded from.
  685   unsigned getGlobalID() const {
  686     if (isFromASTFile())
  687       return *((const unsigned*)this - 1);
  688     return 0;
  689   }

getGlobalID is not intend to be used with a generated AST. To identify a Decl
uniquely use the address of the Decl, which is the hex value in the AST dump.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>