Fix null dereference on uninitialized loop variable.

Bug swiftshader:52

Change-Id: I972c769551acf19898f10579685f45f3192612c4
Reviewed-on: https://swiftshader-review.googlesource.com/9810
Reviewed-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <capn@google.com>
Tested-by: Nicolas Capens <capn@google.com>
diff --git a/src/OpenGL/compiler/OutputASM.cpp b/src/OpenGL/compiler/OutputASM.cpp
index a0b5500..da87532 100644
--- a/src/OpenGL/compiler/OutputASM.cpp
+++ b/src/OpenGL/compiler/OutputASM.cpp
@@ -3521,7 +3521,7 @@
 				{
 					TIntermBinary *assign = variable->getAsBinaryNode();
 
-					if(assign->getOp() == EOpInitialize)
+					if(assign && assign->getOp() == EOpInitialize)
 					{
 						TIntermSymbol *symbol = assign->getLeft()->getAsSymbolNode();
 						TIntermConstantUnion *constant = assign->getRight()->getAsConstantUnion();