Skip to content

Commit

Permalink
Remove some dead code.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@96581 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
Anders Carlsson committed Feb 18, 2010
1 parent d76f8b4 commit 713155f
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/CodeGen/CGVtable.cpp
Expand Up @@ -402,19 +402,6 @@ FinalOverriders::ComputeThisAdjustmentBaseOffset(BaseSubobject Base,
}

return BaseOffset();

assert(!Paths.getDetectedVirtual() && "FIXME: Handle virtual bases!");

BaseOffset Offset;

// FIXME: This is not going to be enough with virtual bases.
// FIXME: We should not use / 8 here.
int64_t DerivedToBaseOffset =
(Base.getBaseOffset() - Derived.getBaseOffset()) / 8;

Offset.NonVirtualOffset = -DerivedToBaseOffset;

return Offset;
}

void FinalOverriders::PropagateOverrider(const CXXMethodDecl *OldMD,
Expand Down

0 comments on commit 713155f

Please sign in to comment.