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
..
2011-03-30 15:42:27 +00:00
2011-04-13 12:50:47 +00:00
2011-04-28 08:17:08 +00:00
2011-04-23 19:53:52 +00:00
2011-05-03 17:22:56 +00:00