This is an archive of the discontinued LLVM Phabricator instance.

Fix PR19408 -- Missing static this adjustment in a vtordisp thunk
ClosedPublic

Authored by timurrrr on Apr 16 2014, 6:53 AM.

Details

Reviewers
rnk

Diff Detail

Event Timeline

rnk accepted this revision.Apr 16 2014, 9:53 AM

lgtm

lib/AST/VTableBuilder.cpp
2749

I never know what 'ThisOffset' refers to in this code. Is there a better name we could use?

timurrrr updated this revision to Unknown Object (????).Apr 17 2014, 4:07 AM

I went forward with the test cases, uncovered a couple of more bugs and fixed them.
The change to the code is pretty straightforward so I hope you can review post-commit.

I'll revisit the ThisOffset naming as a separate commit.

timurrrr closed this revision.Apr 17 2014, 4:30 AM

r206457.

See the follow-up at http://reviews.llvm.org/D3410

It looks like in fact the value ThisOffset was wrong :)
So after D3410 fix "ThisOffset" remains as described in the ComputeThisOffset comment.