]> granicus.if.org Git - clang/commitdiff
Whoops, forgot to save :)
authorAnders Carlsson <andersca@mac.com>
Thu, 3 Dec 2009 02:20:26 +0000 (02:20 +0000)
committerAnders Carlsson <andersca@mac.com>
Thu, 3 Dec 2009 02:20:26 +0000 (02:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@90393 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGVtable.cpp

index c010f74b2d899b77bc4a0869ae201ef14d0be8f0..d693a6af933a4ce2240c34f6ff88dd1bdfe10122 100644 (file)
@@ -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);