Commit 2e2ba8dd by Nicolas Capens

Ignore constants that have not been initialized.

Bug 19331817 Change-Id: Ib2d41e072306e4fb64a6e074705982982c08cdd4 Reviewed-on: https://swiftshader-review.googlesource.com/2111Reviewed-by: 's avatarNicolas Capens <capn@google.com> Tested-by: 's avatarNicolas Capens <capn@google.com>
parent 198529d7
......@@ -148,6 +148,13 @@ bool TConstTraverser::visitSelection(Visit visit, TIntermSelection* node)
void TConstTraverser::visitConstantUnion(TIntermConstantUnion* node)
{
if (!node->getUnionArrayPointer())
{
// The constant was not initialized, this should already have been logged
assert(infoSink.info.size() != 0);
return;
}
ConstantUnion* leftUnionArray = unionArray;
int instanceSize = type.getObjectSize();
TBasicType basicType = type.getBasicType();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment