Currently, clang accepts a union with a reference member when given the -fms-extensions flag. This change fixes the codegen for this case.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM, thank you! I think this is actually needed to properly support MFC on Windows, IIRC.
Comment Actions
I'm happy to commit for you, but I get merge conflicts when trying to apply your patch. Can you rebase on trunk?
Comment Actions
Rebased onto master, clang format the patch.
Merge conflict resolve by having the bitcast of the field reference happening after recording access index.
Can you clang-format the patch?