[llvm-bugs] [Bug 47072] New: Expressions with side-effects (including function calls) should not appear in assert().(llvm-project/llvm/utils/TableGen/RegisterInfoEmitter.cpp: line 1291 )
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Aug 9 20:05:36 PDT 2020
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: unassignedbugs at nondot.org
Reporter: info at ustchcs.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200810/c6b798e2/attachment.html>
More information about the llvm-bugs
mailing list