[cfe-commits] r163465 - /cfe/trunk/lib/Basic/Targets.cpp

Anton Korobeynikov asl at math.spbu.ru
Sat Sep 8 10:03:23 PDT 2012


> How'd you come across this? Any reasonable test case?
Well... Just release w/o asserts mode on darwin + make test.

> (alternatively/in addition: should we annotate StringRef's ctor with
> nonnull? (I don't suppose we bother with this in general, but given
> the prevailing LLVM style of using raw zero literals (rather than the
> NULL macro) for null pointers, I wonder whether it'd help catch a few
> surprising cases))
There is an assert inside stringref ctor, this is how it was caught :)

-- 
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University



More information about the cfe-commits mailing list