Skip to content
Commit 26b4ef76 authored by Dan Gohman's avatar Dan Gohman
Browse files

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
parent 7bee9ad4
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