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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
| Paths 
 |  Differential  D16706  
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 
Diff Detail 
 Event TimelineMatzeB updated this object. This revision is now accepted and ready to land.Jan 29 2016, 3:42 PM Closed by commit rL259419: SmallSet/SmallPtrSet: Refuse huge Small numbers (authored by matze).  ·  Explain WhyFeb 1 2016, 2:09 PM This revision was automatically updated to reflect the committed changes. 
Revision Contents 
Diff 46339 include/llvm/ADT/SmallPtrSet.h
 include/llvm/ADT/SmallSet.h
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||