Added support for user-defined structs. And fixed a bug in function return type.
Review URL: http://codereview.appspot.com/849042

git-svn-id: https://angleproject.googlecode.com/svn/trunk@88 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index 601a386..5de6c3f 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -988,7 +988,7 @@
 {
     TInfoSinkBase &out = context.infoSink.obj;
     
-    TType &type = node->getType();
+    const TType &type = node->getType();
 
     if (type.isField())
     {