aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGVtable.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-12-03 02:20:26 +0000
committerAnders Carlsson <andersca@mac.com>2009-12-03 02:20:26 +0000
commit1db4a9b11b459bbd777806bdee6fa341f134187f (patch)
tree1362cedb1b540894314475dfc3d8f62f860d697d /lib/CodeGen/CGVtable.cpp
parent5f96bc1281133d325f7f28037e5cdddc88de76fa (diff)
Whoops, forgot to save :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90393 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 c010f74b2d..d693a6af93 100644
--- a/lib/CodeGen/CGVtable.cpp
+++ b/lib/CodeGen/CGVtable.cpp
@@ -78,6 +78,8 @@ private:
/// CovariantThunk - Represents a single covariant thunk.
struct CovariantThunk {
+ CovariantThunk() { }
+
CovariantThunk(GlobalDecl GD, const ThunkAdjustment &ReturnAdjustment,
CanQualType ReturnType)
: GD(GD), ReturnAdjustment(ReturnAdjustment),
@@ -757,7 +759,7 @@ bool VtableBuilder::OverrideMethod(GlobalDecl GD, llvm::Constant *m,
// FIXME: Do we always have to build a covariant thunk to save oret,
// which is the containing virtual base class?
if (!ReturnAdjustment.isEmpty())
- CovariantThunks[i] = CovariantThunk(i, GD, ReturnAdjustment, oret);
+ CovariantThunks[i] = CovariantThunk(GD, ReturnAdjustment, oret);
if (!isPure && !ThisAdjustment.isEmpty())
Thunks[GD] = Thunk(i, ThisAdjustment);
@@ -772,7 +774,7 @@ bool VtableBuilder::OverrideMethod(GlobalDecl GD, llvm::Constant *m,
if (!ReturnAdjustment.isEmpty())
CovariantThunks[i] =
- CovariantThunk(i, GD, ReturnAdjustment, oret);
+ CovariantThunk(GD, ReturnAdjustment, oret);
if (!isPure)
Thunks[GD] = Thunk(i, ThisAdjustment);