search for: r97769

Displaying 2 results from an estimated 2 matches for "r97769".

2010 Mar 04
2
[LLVMdev] Null pointers
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
2010 Mar 05
0
[LLVMdev] Null pointers
...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. I added the raw_fd_ostream one in r97769. Twine is a low level api which is very performance sensitive, I'd rather not add one to its constructor. -Chris