From 07a5bf3173bff68e7a02eb0f1340e16c83385c32 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 5 Feb 2014 18:00:01 +0000 Subject: [PATCH] Remove unused variable to fix -Werror build git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200861 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MicrosoftCXXABI.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/CodeGen/MicrosoftCXXABI.cpp b/lib/CodeGen/MicrosoftCXXABI.cpp index c8d63af05c..013ae74dd2 100644 --- a/lib/CodeGen/MicrosoftCXXABI.cpp +++ b/lib/CodeGen/MicrosoftCXXABI.cpp @@ -1510,9 +1510,6 @@ MicrosoftCXXABI::BuildMemberPointer(const CXXRecordDecl *RD, FirstField = llvm::Constant::getNullValue(CGM.VoidPtrTy); } else { SmallString<256> ThunkName; - CharUnits PointerWidth = getContext().toCharUnitsFromBits( - getContext().getTargetInfo().getPointerWidth(0)); - uint64_t OffsetInVFTable = ML.Index * PointerWidth.getQuantity(); llvm::raw_svector_ostream Out(ThunkName); getMangleContext().mangleVirtualMemPtrThunk(MD, Out); Out.flush(); -- 2.40.0