Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aliasing through a union member is valid. #26

Merged
merged 1 commit into from
Nov 23, 2015

Conversation

dneto0
Copy link
Collaborator

@dneto0 dneto0 commented Nov 23, 2015

Take back my previous TODO.

@@ -33,7 +33,9 @@ enum {
I32_ENDIAN_BIG = 0x00010203ul,
};

// TODO(dneto): This relies on undefined behaviour. Fix that.
// This constant value allows the detection of the host machine's endianness.
// Accessing it the "value" member is valid due to C++11 section 3.10
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accessing it through the "value" member

@dneto0 dneto0 force-pushed the alias-via-union branch 2 times, most recently from a18b6e4 to 5ab8a03 Compare November 23, 2015 20:31
Take back my previous TODO.
@AWoloszyn
Copy link
Contributor

+2

@dneto0 dneto0 merged commit c9e0845 into KhronosGroup:master Nov 23, 2015
@dneto0 dneto0 deleted the alias-via-union branch November 23, 2015 22:05
dgkoch pushed a commit to dgkoch/SPIRV-Tools that referenced this pull request Nov 21, 2018
…ng-frontend

Add "Shaderc over Glslang" as a front end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants