[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.

llvm-svn: 338909
This commit is contained in:
Erich Keane 2018-08-03 18:08:36 +00:00
parent 0a11b6366a
commit ed69e1bc98
1 changed files with 1 additions and 1 deletions

View File

@ -1076,7 +1076,7 @@ RValue CodeGenFunction::EmitBlockCallExpr(const CallExpr *E,
E->getCallee()->getType()->getAs<BlockPointerType>();
llvm::Value *BlockPtr = EmitScalarExpr(E->getCallee());
llvm::Value *FuncPtr;
llvm::Value *FuncPtr = nullptr;
if (!CGM.getLangOpts().OpenCL) {
// Get a pointer to the generic block literal.