https://bugs.llvm.org/show_bug.cgi?id=33923

Michael Haidl <michael.ha...@uni-muenster.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
                 CC|                            |michael.haidl@uni-muenster.
                   |                            |de
             Status|NEW                         |RESOLVED

--- Comment #1 from Michael Haidl <michael.ha...@uni-muenster.de> ---

  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.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to