This patch fixes clang to decorate reference accesses as pointers and not as "omnipotent chars".
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Could you flesh out this test case a bit? Please include at least:
- the initialization in B::B(S&)
- a load of the reference value (not the referent)
Comment Actions
Added a check for the initialization of the reference member in B::B(S&). (That in fact was my original intent; thanks for catching it.)
As to reference loads, we generate them with CodeGenFunction::EmitLoadOfReference() that, in contrast to CodeGenFunction::EmitLoadOfScalar(), is not TBAA-ready yet and looks to be a subject to a separate patch. So, what if we land D38126 first and then eventually re-consider the issue? Thanks again.