Printing of ConcreteInts with size >64 bits resulted in assertion failure in get[Z|S]ExtValue() :getActiveBits() <= 64 && "Too many bits for uint64_t"' failed'. This patch fixes the issue.
Initial patch by Ivan Sidorenko (modified by A. Sidorin).
Differential D45417
[analyzer] Don't crash on printing ConcreteInt of size >64 bits a.sidorin on Apr 8 2018, 10:43 AM. Authored by
Details
Printing of ConcreteInts with size >64 bits resulted in assertion failure in get[Z|S]ExtValue() :getActiveBits() <= 64 && "Too many bits for uint64_t"' failed'. This patch fixes the issue. Initial patch by Ivan Sidorenko (modified by A. Sidorin).
Diff Detail
Event Timeline
Comment Actions After thinking a bit more, I have removed the FIXME at all: dumping SVal is an extremely rare event so this shouldn't affect the performance. Comment Actions Closed with https://reviews.llvm.org/rC330605. Forgot to mention the Differential Revision, sorry. |
Given that getValue is accessed 6 times now, I would put it into a variable