]> granicus.if.org Git - clang/commit
DebugInfo: Don't call DIBuilder::retainType(nullptr)
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 27 Mar 2015 22:58:05 +0000 (22:58 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 27 Mar 2015 22:58:05 +0000 (22:58 +0000)
commit178a7e9255d74a221ba860b9a5da68ab968a30d8
tree26accc6263e363a8e170fe5abc04aacbda64b3ec
parent74e3a016fdb295ff89c300443bf4b388d81c210c
DebugInfo: Don't call DIBuilder::retainType(nullptr)

An upcoming LLVM commit will make calling
`DIBuilder::retainType(nullptr)` illegal (actually, it already was, but
it wasn't verified).  Check for null before calling.

This triggered in test/CodeGenObjC/debug-info-block-helper.m.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233443 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp