This is an archive of the discontinued LLVM Phabricator instance.

SmallSet/SmallPtrSet: Refuse huge SmallSize/N numbers
ClosedPublic

Authored by MatzeB on Jan 28 2016, 7:47 PM.

Details

Summary

These sets do linear searching in small mode; It is not a good idea to
use huge numbers as the small value here, save people from themselves by
adding a static_assert.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 46339.Jan 28 2016, 7:47 PM
MatzeB retitled this revision from to SmallSet/SmallPtrSet: Refuse huge SmallSize/N numbers.
MatzeB updated this object.
MatzeB added reviewers: chandlerc, echristo, reames.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
echristo accepted this revision.Jan 29 2016, 3:42 PM
echristo edited edge metadata.

LGTM.

-eric

This revision is now accepted and ready to land.Jan 29 2016, 3:42 PM
This revision was automatically updated to reflect the committed changes.