[llvm-commits] [llvm] r46625 - /llvm/trunk/include/llvm/ADT/StringMap.h
Chris Lattner
clattner at apple.com
Thu Jan 31 21:41:16 PST 2008
On Jan 31, 2008, at 3:32 PM, Anton Korobeynikov wrote:
> Hello, Chris
>
>> This sort of thing won't work when the string is empty and checking
>> is
>> enabled. Maybe something like this is enough:
>> if (Key.empty()) return find(0,0);
> Will find() operate sane in such case (supplying NULL pointer as
> input)?
Sure, it's a zero length range, so it would be invalid to dereference
either pointer.
-Chris
More information about the llvm-commits
mailing list