TIntermBinary::promote() was incorrectly marking the type of result as const in some cases. The result can only be const if both operands are const. Also cleaned up the function to remove redundant/repeated checks. BUG=24 TEST=OpenGL ES 2.0 Conformance tests Review URL: http://codereview.appspot.com/1938047
TIntermBinary::promote() was incorrectly marking the type of result as const in some cases. The result can only be const if both operands are const. Also cleaned up the function to remove redundant/repeated checks.
BUG=24
TEST=OpenGL ES 2.0 Conformance tests
Review URL: http://codereview.appspot.com/1938047

git-svn-id: a070b70d2b8c44c266a3870c0cddd9a0ee470458@385 736b8ea6-26fd-11df-bfd4-992fa37f6226

stammen/angleproject,larsbergstrom/angle,ehsan/angle,pombreda/angleproject,jgcaaprom/android_external_chromium_org_third_party_angle,KTXSoftware/angleproject,MSOpenTech/angle-win8.0,android-ia/platform_external_chromium_org_third_party_angle,MIPS/external-chromium_org-third_party-angle_dx11,nandhanurrevanth/angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,pombreda/angleproject,ppy/angle,cvsuser-chromium/chromium-third-party_angle_dx11,KTXSoftware/angleproject,MIPS/external-chromium_org-third_party-angle_dx11,xin3liang/platform_external_chromium_org_third_party_angle,vvuk/angle-old,ehsan/angle,MSOpenTech/angle-win8.0,csa7mdm/angle,themusicgod1/angleproject,cantren/angleproject,xuxiandi/angleproject,geekboxzone/lollipop_external_chromium_org_third_party_angle,MIPS/external-chromium_org-third_party-angle_dx11,ghostoy/angle,MSOpenTech/angle,xuxiandi/angleproject,mikolalysenko/angle,jgcaaprom/android_external_chromium_org_third_party_angle,bsergean/angle,cantren/angleproject,MIPS/external-chromium_org-third_party-angle_dx11,ecoal95/angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,xin3liang/platform_external_chromium_org_third_party_angle,bsergean/angle,vvuk/angle,RepublicMaster/angleproject,MSOpenTech/angle,shairai/angleproject,MIPS/external-chromium_org-third_party-angle,domokit/waterfall,MSOpenTech/angle-win8.0,cvsuser-chromium/chromium-third-party_angle_dx11,MIPS/external-chromium_org-third_party-angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,pombreda/angleproject,cvsuser-chromium/chromium-third-party_angle_dx11,KalebDark/angleproject,mlfarrell/angle,xuxiandi/angleproject,RepublicMaster/angleproject,mybios/angle,vvuk/angle-old,xuxiandi/angleproject,larsbergstrom/angle,cvsuser-chromium/chromium-third-party_angle_dx11,mybios/angle,stammen/angleproject,KalebDark/angleproject,jgcaaprom/android_external_chromium_org_third_party_angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,ghostoy/angle,ghostoy/angle,mrobinson/rust-angle,xin3liang/platform_external_chromium_org_third_party_angle_dx11,vvuk/angle,KalebDark/angleproject,KTXSoftware/angleproject,bsergean/angle,ecoal95/angle,vvuk/angle,themusicgod1/angleproject,mybios/angle,KalebDark/angleproject,shairai/angleproject,mrobinson/rust-angle,geekboxzone/lollipop_external_chromium_org_third_party_angle,nandhanurrevanth/angle,larsbergstrom/angle,larsbergstrom/angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,mlfarrell/angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,jgcaaprom/android_external_chromium_org_third_party_angle,cantren/angleproject,ecoal95/angle,csa7mdm/angle,nandhanurrevanth/angle,vvuk/angle,domokit/waterfall,RepublicMaster/angleproject,ehsan/angle,ecoal95/angle,shairai/angleproject,themusicgod1/angleproject,mikolalysenko/angle,bsergean/angle,csa7mdm/angle,crezefire/angle,MSOpenTech/angle,KTXSoftware/angleproject,MIPS/external-chromium_org-third_party-angle,MSOpenTech/angle-win8.0,android-ia/platform_external_chromium_org_third_party_angle,MIPS/external-chromium_org-third_party-angle,ghostoy/angle,ppy/angle,themusicgod1/angleproject,xin3liang/platform_external_chromium_org_third_party_angle,mikolalysenko/angle,mrobinson/rust-angle,shairai/angleproject,xin3liang/platform_external_chromium_org_third_party_angle_dx11,geekboxzone/lollipop_external_chromium_org_third_party_angle,crezefire/angle,crezefire/angle,ehsan/angle,RepublicMaster/angleproject,MSOpenTech/angle,KTXSoftware/angleproject,nandhanurrevanth/angle,android-ia/platform_external_chromium_org_third_party_angle_dx11,pombreda/angleproject,mrobinson/rust-angle,csa7mdm/angle,stammen/angleproject,ecoal95/angle,vvuk/angle-old,mikolalysenko/angle,mlfarrell/angle,ppy/angle,xin3liang/platform_external_chromium_org_third_party_angle,vvuk/angle-old,mybios/angle,cantren/angleproject,android-ia/platform_external_chromium_org_third_party_angle,stammen/angleproject,ppy/angle,mlfarrell/angle,crezefire/angle,android-ia/platform_external_chromium_org_third_party_angle,mrobinson/rust-angle