aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-11-26 03:09:37 +0000
committerAnders Carlsson <andersca@mac.com>2009-11-26 03:09:37 +0000
commit7622cd3410846d28862ecfe862117894a259a7fa (patch)
tree15cb5de7a3ad12490678b65ce64c27e3e40e8dcb /lib/CodeGen/CGVtable.cpp
parente9d6554ba78fb81e810fdaec9b2c98ab96526e83 (diff)
Add a CovariantThunkAdjustment struct that represents the adjustments needed for a covariant thunk.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89933 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGVtable.cpp')
-rw-r--r--lib/CodeGen/CGVtable.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/CGVtable.cpp b/lib/CodeGen/CGVtable.cpp
index 08690f23a8..69bf2e6ae1 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -349,8 +349,10 @@ public:
Index_t v_t = i->second.first.first.second;
Index_t nv_r = i->second.first.second.first;
Index_t v_r = i->second.first.second.second;
- submethods[idx] = CGM.BuildCovariantThunk(MD, Extern, nv_t, v_t, nv_r,
- v_r);
+
+ CovariantThunkAdjustment Adjustment(ThunkAdjustment(nv_t, v_t),
+ ThunkAdjustment(nv_r, v_r));
+ submethods[idx] = CGM.BuildCovariantThunk(MD, Extern, Adjustment);
}
CovariantThunks.clear();
for (Pures_t::iterator i = Pures.begin(), e = Pures.end();