r175982 - PR15338: Don't assert if -fsanitize=bounds sees array indexing on an incomplete

Sean Silva silvas at purdue.edu
Sun Feb 24 15:54:34 PST 2013


On Sun, Feb 24, 2013 at 1:53 PM, David Blaikie <dblaikie at gmail.com> wrote:
> & I'm just going to take this opportunity to raise an option here (& I've
> mentioned things like this before but they don't seem to be very popular):
>
> cast should return references, not pointers (& I'd prefer it take
> references, not pointers) and then we couldn't write this sort of bug*...
> (dyn_cast could take references too, but obviously still return pointers (or
> Optional<T&>, though I realize that's a bit odd))

That would require a significant (automated) refactoring effort that I
don't think anyone is interested in doing (but would be a great way to
dogfood our own technology!).

-- Sean Silva



More information about the cfe-commits mailing list