]> granicus.if.org Git - clang/commit
[CodeGen] Check if the Decl pointer passed is null, and if so, return
authorAkira Hatanaka <ahatanaka@apple.com>
Thu, 8 Oct 2015 19:30:57 +0000 (19:30 +0000)
committerAkira Hatanaka <ahatanaka@apple.com>
Thu, 8 Oct 2015 19:30:57 +0000 (19:30 +0000)
commitcc036a271d47460437e508b85706aa087492d464
treeb5d34a3670f41b9fe6439acb301dfdfc3ffd884c
parent5e8b924038f896c88c2a658489bdaf8265ec8e02
[CodeGen] Check if the Decl pointer passed is null, and if so, return
early.

This is needed in a patch I plan to commit later, in which a null Decl
pointer is passed to SetLLVMFunctionAttributesForDefinition.

Relevant discussion is in http://reviews.llvm.org/D13525.

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