This is an archive of the discontinued LLVM Phabricator instance.

Improve the helpfulness of an assert message
AbandonedPublic

Authored by richard.barton.arm on Oct 7 2015, 12:35 AM.

Details

Reviewers
rafael
Summary

There are two asserts that can trigger if the number of diagnostic messages in a
kind overflows the number of available enums values. The one that fires if you
exceed this limit by one is helpful. The one that fires if you exceed it by more than
one is not as helpful. Combining the two makes sense I think.

Diff Detail

Repository
rL LLVM

Event Timeline

richard.barton.arm retitled this revision from to Improve the helpfulness of an assert message.
richard.barton.arm updated this object.
richard.barton.arm set the repository for this revision to rL LLVM.
richard.barton.arm removed rL LLVM as the repository for this revision.
richard.barton.arm added a subscriber: cfe-commits.
richard.barton.arm abandoned this revision.Oct 7 2015, 1:31 AM

Abandoning as cfe-commits was not on subscribers