OSDN Git Service

Bugfix for nullptr check by klocwork
authorPengfei Wang <pengfei.wang@intel.com>
Thu, 9 May 2019 08:09:21 +0000 (08:09 +0000)
committerPengfei Wang <pengfei.wang@intel.com>
Thu, 9 May 2019 08:09:21 +0000 (08:09 +0000)
commitf30ca6ec43f5f87d51f9bfbbc8281432092b24dc
treeec40cddf25085f60b49902a3c82dcf7ef4c8fab6
parentb24e093ca06fd4c1f009d3ae3241c65fa3c223a1
Bugfix for nullptr check by klocwork

Klocwork static check:
Pointer from call to function `DebugLoc::operator DILocation *() const `
may be NULL and will be dereference in function `printExtendedName```
Patch by Shengchen Kan (skan)
Differential Revision: https://reviews.llvm.org/D61715

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