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

            Bug ID: 47072
           Summary: Expressions with side-effects (including function
                    calls) should not appear in
                    assert().(llvm-project/llvm/utils/TableGen/RegisterInf
                    oEmitter.cpp: line 1291 )
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Object
          Assignee: unassignedb...@nondot.org
          Reporter: i...@ustchcs.com
                CC: llvm-bugs@lists.llvm.org

Expressions with side-effects (including function calls) should not appear in
assert().

commit e3546c78cabfbf670391a57766872f0a8e28a423

llvm-project/llvm/utils/TableGen/RegisterInfoEmitter.cpp: line 1291

  1290        for (const auto &RC : RegisterClasses) {
  1291          assert(RC.EnumValue == EV++ && "Unexpected order of register
classes");
  1292          (void)EV;
  1293          const RegSizeInfo &RI = RC.RSI.get(M);
  1294          OS << "  { " << RI.RegSize << ", " << RI.SpillSize << ", "
  1295             << RI.SpillAlignment;
  1296          std::vector<MVT::SimpleValueType> VTs;
  1297          for (const ValueTypeByHwMode &VVT : RC.VTs)
  1298            VTs.push_back(VVT.get(M).SimpleTy);
  1299          OS << ", VTLists+" << VTSeqs.get(VTs) << " },    // "
  1300             << RC.getName() << '\n';
  1301        }
  1302      }

Reported by: Ustchcs Toolsets Bugfinder
(bugfinder-13.2: Expressions with side-effects (including function calls)
should not appear in assert().)

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

Reply via email to