Fix some sporadic segfaults that are triggered when SmallVector's heap
storage lands near the end of the available address space. In the expression Begin+N > Capacity, the Begin+N was overflowing. Fix this by replacing it by with an expression that doesn't involve computation of an address beyond the end of allocated memory. llvm-svn: 37171
Loading
Please register or sign in to comment