Ignore constants that have not been initialized.

TRAC #22676
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1996 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/parseConst.cpp b/src/compiler/parseConst.cpp
index 9a8a50c..421d31f 100644
--- a/src/compiler/parseConst.cpp
+++ b/src/compiler/parseConst.cpp
@@ -151,6 +151,13 @@
 
 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();