[LLVMbugs] [Bug 20942] New: TableGen and AttrDump.inc

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Sep 15 03:22:04 PDT 2014


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

            Bug ID: 20942
           Summary: TableGen and AttrDump.inc
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vvasilev at cern.ch
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

I came across in AttrDump.inc:

  case attr::Availability: {
    const AvailabilityAttr *SA = cast<AvailabilityAttr>(A);
    OS << " " << SA->getPlatform()->getName();
    OS << " " << SA->getIntroduced();
    OS << " " << SA->getDeprecated();
    OS << " " << SA->getObsoleted();
    if (SA->getUnavailable()) OS << " Unavailable";
    OS << " \"" << SA->getMessage() << "\"";
    bool OldMoreChildren = hasMoreChildren();
    bool MoreChildren;
    MoreChildren = OldMoreChildren || false || false || false || false ||
false;
    setMoreChildren(MoreChildren);
    MoreChildren = OldMoreChildren || false || false || false || false;
    setMoreChildren(MoreChildren);
    MoreChildren = OldMoreChildren || false || false || false;
    setMoreChildren(MoreChildren);
    MoreChildren = OldMoreChildren || false || false;
    setMoreChildren(MoreChildren);
    MoreChildren = OldMoreChildren || false;
    setMoreChildren(MoreChildren);
    MoreChildren = OldMoreChildren;
    setMoreChildren(MoreChildren);
    setMoreChildren(OldMoreChildren);
    break;
  }

It seems that table gen gets confused when generating the dumping of
attributes.

-- 
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/20140915/4514ef7d/attachment.html>


More information about the llvm-bugs mailing list