[LLVMdev] Null pointers

Renato Golin rengolin at systemcall.org
Thu Mar 4 08:20:06 PST 2010


I'm recurrently falling into two null pointers when building some LLVM
objects: raw_fd_ostream and Twine. On both ctors, the char* is never
asserted to point somewhere.

I know I have to make sure the string exists, but would be good to get
an assert instead of a segfault. It'd reduce debugging time a lot on
those cases.

Is it against the "LLVM way"? I haven't seen many around...

-- 
cheers,
--renato

http://systemcall.org/

Reclaim your digital rights, eliminate DRM, learn more at
http://www.defectivebydesign.org/what_is_drm



More information about the llvm-dev mailing list