Skip to content
Commit 298f6380 authored by Craig Topper's avatar Craig Topper
Browse files

Fix an off by 1 bug that prevented SmallPtrSet from using all of its 'small'...

Fix an off by 1 bug that prevented SmallPtrSet from using all of its 'small' capacity. Then fix the early return in the move constructor that prevented 'small' moves from clearing the NumElements in the moved from object. The directed test missed this because it was always testing large moves due to the off by 1 bug.

llvm-svn: 216044
parent b8083476
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment