summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorXing Xue <xingxue@outlook.com>2019-06-26 19:27:16 +0000
committerXing Xue <xingxue@outlook.com>2019-06-26 19:27:16 +0000
commit600941e34fed7fbbc68b3380ea1f63b28809035f (patch)
treea08f17e82e1a0e9334f44ef8f59ad1f1e9f26d10 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent730a95c88aff8ceb7bd88cd4d8f30f533896cfb2 (diff)
downloadbcm5719-llvm-600941e34fed7fbbc68b3380ea1f63b28809035f.tar.gz
bcm5719-llvm-600941e34fed7fbbc68b3380ea1f63b28809035f.zip
Print NULL as "(null)" in diagnostic message
Summary: Passing a null pointer to the printf family for a %s format specifier leads to undefined behaviour. The tests currently expect (null). Explicitly test for a null pointer and provide the expected string. Authored By: andusy Reviewers: hubert.reinterpretcast, xingxue, jasonliu, daltenty, cebowleratibm Reviewed By: hubert.reinterpretcast Subscribers: arphaman, jsji, cfe-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D63786 llvm-svn: 364462
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud