http://llvm.org/bugs/show_bug.cgi?id=21279

            Bug ID: 21279
           Summary: DIDescriptor::isLexicalBlock() returns true for
                    DILexicalBlockFile
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Core LLVM classes
          Assignee: unassignedb...@nondot.org
          Reporter: dexonsm...@apple.com
                CC: llvmbugs@cs.uiuc.edu
    Classification: Unclassified

DIDescriptor::isLexicalBlock() returns true for DILexicalBlockFile.  This
doesn't make sense, since DILexicalBlockFile::Verify() would return false.  It
causes problems (e.g.) in pretty printing, because the "identity" of
DIDescriptors is checked like:

      // ...
    } else if (DI.isLexicalBlock()) {
      // ...
    } else if (DI.isLexicalBlockFile()) {
      // ...

I tried to fix this as a drive-by as part of PR17891 in r218914, but it caused
a problem building Asan so I had to back it out.

I haven't seen any other real problems (besides pretty printing) but it's a
time bomb.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
LLVMbugs@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to