[LLVMbugs] [Bug 21279] New: DIDescriptor::isLexicalBlock() returns true for DILexicalBlockFile
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Oct 14 14:25:36 PDT 2014
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: unassignedbugs at nondot.org
Reporter: dexonsmith at apple.com
CC: llvmbugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20141014/642fb235/attachment.html>
More information about the llvm-bugs
mailing list