]> granicus.if.org Git - clang/commit
[NFC] Initialize a variable to prevent future invalid deref.
authorErich Keane <erich.keane@intel.com>
Fri, 3 Aug 2018 18:08:36 +0000 (18:08 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 3 Aug 2018 18:08:36 +0000 (18:08 +0000)
commit4c2bf4793555c9c709c43f21a3eb965219020126
tree3c89cad56bf9bc8da3539bdb7d326fe305f9d53f
parent0d0539138215b455f63474ad637ddded0f2b701c
[NFC] Initialize a variable to prevent future invalid deref.

Found by KlockWorks, this variable is properly protected, however
the conditions in the test that initializes it and the one that uses
it could diverge, it seems to me that this is a 'free' init that will
prevent issues if one of the conditions is ever modified without the other.

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