llvm-6502/include
Argyrios Kyrtzidis 6d5502eb49 Add asserts in StringRef to make sure we avoid undefined behavior:
-strlen should not be called with NULL. Also guarantee that StringRef's Length is 0 if Data is NULL.
-memcmp should not be called with NULL (even if size is 0)

Patch by Matthieu Monrocq!


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@131747 91177308-0d34-0410-b5e6-96231b3b80d8
2011-05-20 19:24:12 +00:00
..
llvm Add asserts in StringRef to make sure we avoid undefined behavior: 2011-05-20 19:24:12 +00:00
llvm-c Declare this function here so that it doesn't get C++ mangling. 2011-05-15 07:20:34 +00:00