From: Anders Carlsson Date: Thu, 3 Dec 2009 02:20:26 +0000 (+0000) Subject: Whoops, forgot to save :) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1db4a9b11b459bbd777806bdee6fa341f134187f;p=clang Whoops, forgot to save :) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90393 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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);