Value-initialize the Data union member of folly::Function
authorEric Niebler <eniebler@fb.com>
Mon, 6 Nov 2017 19:42:48 +0000 (11:42 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 6 Nov 2017 19:51:10 +0000 (11:51 -0800)
commitd6a27b28486331975bb538ddce4213301d913a1f
tree8f9822b383125d263ef9ecdfb11a604ae99d4677
parentad3fe1dd9d62659880c7d563cde21bde7e3e2326
Value-initialize the Data union member of folly::Function

Summary: The Data field was not getting value-initialized, leading compilers to complain when value-initializing const folly::Function objects.

Reviewed By: yfeldblum, ot

Differential Revision: D6241712

fbshipit-source-id: 99ce7f6016f6e7d16b1cff7aa51b7bef53ec592d
folly/Function.h
folly/test/FunctionTest.cpp