Fix crash caused by missing shader function definition and report the error.

BUG=17956386

Change-Id: I89f243b557b70401052b1f7db237fbc410386f64
Reviewed-on: https://swiftshader-review.googlesource.com/1190
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: <nicolascapens@google.com>
Reviewed-by: <nicolascapens@google.com>
diff --git a/src/GLES2/compiler/ShHandle.h b/src/GLES2/compiler/ShHandle.h
index 8294abf..c772582 100644
--- a/src/GLES2/compiler/ShHandle.h
+++ b/src/GLES2/compiler/ShHandle.h
@@ -73,7 +73,7 @@
     // Collect info for all attribs and uniforms.
     void collectAttribsUniforms(TIntermNode *root);
     // Translate to object code.
-    virtual void translate(TIntermNode *root) = 0;
+    virtual bool translate(TIntermNode *root) = 0;
     // Get built-in extensions with default behavior.
     const TExtensionBehavior& getExtensionBehavior() const;