Merge pull request #593 from KhronosGroup/old-clang-compile

Fix compile on older clang.
This commit is contained in:
Hans-Kristian Arntzen 2018-05-30 19:58:48 +01:00 committed by GitHub
commit 0a83bacf3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1192,7 +1192,7 @@ const Bitset &Compiler::get_member_decoration_bitset(uint32_t id, uint32_t index
auto &m = meta.at(id);
if (index >= m.members.size())
{
static const Bitset cleared;
static const Bitset cleared = {};
return cleared;
}