Commit 6287c18b by Sean Risser

Fix enum-hashing build error on Ubuntu 16.04

Due to a defect in older versions of libstdc++, the std library could not support hashing of enums. So each enum used in a hash is now explicitly used as a uint32_t. Bug: b/166302706 Change-Id: Id7de96f97bef0e6f104dc783115a416e3aa47b7c Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48108 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarSean Risser <srisser@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent e1051cba
...@@ -800,7 +800,7 @@ private: ...@@ -800,7 +800,7 @@ private:
HandleMap<Function> functions; HandleMap<Function> functions;
std::unordered_map<StringID, String> strings; std::unordered_map<StringID, String> strings;
HandleMap<Extension> extensionsByID; HandleMap<Extension> extensionsByID;
std::unordered_set<Extension::Name> extensionsImported; std::unordered_set<uint32_t> extensionsImported;
Function::ID entryPoint; Function::ID entryPoint;
mutable bool imageWriteEmitted = false; mutable bool imageWriteEmitted = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment