Bug 152900 - [ANGLE] Correct UNREACHABLE runtime assertion for void constructors
Summary: [ANGLE] Correct UNREACHABLE runtime assertion for void constructors
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebGL (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Brent Fulgham
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2016-01-08 10:48 PST by Brent Fulgham
Modified: 2016-01-08 13:01 PST (History)
7 users (show)

See Also:


Attachments
Patch (1.87 KB, patch)
2016-01-08 10:55 PST, Brent Fulgham
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Brent Fulgham 2016-01-08 10:48:23 PST
The fix is just to remove the UNREACHABLE call in this name mangler. Several expected values pass through here and should not contribute to the mangled name. The ‘UNREACHBLE()’ call was not appropriate:

chromium / angle / angle / 01971113492d9aca386f2bca021b1f4b134fc277^! / .
commit	01971113492d9aca386f2bca021b1f4b134fc277	[log] [tgz]
author	Dmitry Skiba <dskiba@google.com>	Fri Jul 10 18:54:00 2015
committer	Jamie Madill <jmadill@chromium.org>	Fri Jul 10 19:03:34 2015
tree	47e42eac00f7d64cddb14b3cc21a4e605c189d20
parent	53b76107ece2f5b4dfc831f2b571f9db04d65c73 [diff]

diff --git a/src/compiler/translator/Types.cpp b/src/compiler/translator/Types.cpp
index 0b60eb1..62bcd8e 100644
--- a/src/compiler/translator/Types.cpp
+++ b/src/compiler/translator/Types.cpp
@@ -142,7 +142,8 @@
         mangledName += interfaceBlock->mangledName();
         break;
       default:
-        UNREACHABLE();
+        // EbtVoid, EbtAddress and non types
+        break;
     }
 
     if (isMatrix())
Comment 1 Brent Fulgham 2016-01-08 10:49:05 PST
Side note: We need to update ANGLE, and should try to keep more in sync with the upstream work. The patch that had this (small) fix also added some useful caching that would be nice to have in our code.
Comment 2 Brent Fulgham 2016-01-08 10:55:39 PST
Created attachment 268551 [details]
Patch
Comment 3 Brent Fulgham 2016-01-08 10:56:22 PST
<rdar://problem/24107501>
Comment 4 WebKit Commit Bot 2016-01-08 10:56:55 PST
Note that there are important steps to take when updating ANGLE. See http://trac.webkit.org/wiki/UpdatingANGLE
Comment 5 WebKit Commit Bot 2016-01-08 13:01:43 PST
Comment on attachment 268551 [details]
Patch

Clearing flags on attachment: 268551

Committed r194780: <http://trac.webkit.org/changeset/194780>
Comment 6 WebKit Commit Bot 2016-01-08 13:01:45 PST
All reviewed patches have been landed.  Closing bug.