aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-05-20 19:24:12 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-05-20 19:24:12 +0000
commitac8bc12cd15fd677565a79b7877890aceb74069a (patch)
tree546c4117f825dc9116b4d974671eee6d86740dd2 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
parent91f1d247363ee1fbc567a0dbea94bc6bfd76db02 (diff)
downloadllvm-ac8bc12cd15fd677565a79b7877890aceb74069a.zip
llvm-ac8bc12cd15fd677565a79b7877890aceb74069a.tar.gz
llvm-ac8bc12cd15fd677565a79b7877890aceb74069a.tar.bz2
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
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions