1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-22 04:22:57 +02:00
llvm-mirror/include
Argyrios Kyrtzidis d58ffb7e7d 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!

llvm-svn: 131747
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