Removed the precision check creating spurious error messages
TRAC #12641
The precision of compiler temporaries doesn't require checking,
and would be hard to determine at parse time. We only require
correct precisions for declarations, which is checked separately.
So we can safely remove the check for binary operations.

Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@342 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/Intermediate.cpp b/src/compiler/Intermediate.cpp
index 51a7b7d..f65bc80 100644
--- a/src/compiler/Intermediate.cpp
+++ b/src/compiler/Intermediate.cpp
@@ -17,14 +17,8 @@
 
 bool CompareStructure(const TType& leftNodeType, ConstantUnion* rightUnionArray, ConstantUnion* leftUnionArray);
 
-TPrecision GetHighestPrecision( TPrecision left, TPrecision right, TInfoSink& infoSink ){
-    TPrecision highest = left > right ? left : right;
-
-    if (highest == EbpUndefined) {
-        infoSink.info.message(EPrefixInternalError, "Unknown or invalid precision for operands", 0);
-    }
-
-    return highest;
+TPrecision GetHighestPrecision( TPrecision left, TPrecision right ){
+    return left > right ? left : right;
 }
 ////////////////////////////////////////////////////////////////////////////
 //
@@ -788,7 +782,7 @@
     //
     setType(left->getType());
 
-    TPrecision highestPrecision = GetHighestPrecision(left->getPrecision(), right->getPrecision(), infoSink);
+    TPrecision highestPrecision = GetHighestPrecision(left->getPrecision(), right->getPrecision());
     getTypePointer()->changePrecision(highestPrecision);
 
     //