This moves some memptr specific code into the generic thunk emission
codepath.
Fixes PR20053.
This moves some memptr specific code into the generic thunk emission
codepath.
Fixes PR20053.
LGTM with comments addressed.
lib/CodeGen/CGVTables.cpp | ||
---|---|---|
260–261 ↗ | (On Diff #11907) | Commit this separately. |
317–319 ↗ | (On Diff #11907) | SmallVector<llvm::Value *, 8> Args(CurFn->arg_begin(), CurFn->arg_end()); would be more efficient, it will reserve the "right" amount up-front. |
lib/CodeGen/MicrosoftCXXABI.cpp | ||
1470 ↗ | (On Diff #11907) | CGF.EmitCallAndReturnForThunk(Callee, /*Thunk=*/nullptr); |