From af76ad73ed7bfb6f23d52fde872dc3beaaa0de12 Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Sun, 27 Dec 2009 03:44:17 +0000 Subject: Fix obvious mistake. llvm-svn: 92172 --- clang/lib/CodeGen/CGCXX.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/CodeGen/CGCXX.cpp') diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp index b0f23af8200..81dd534ba69 100644 --- a/clang/lib/CodeGen/CGCXX.cpp +++ b/clang/lib/CodeGen/CGCXX.cpp @@ -1118,7 +1118,7 @@ void CodeGenFunction::InitializeVtablePtrsRecursive( VtableField = Builder.CreateConstInBoundsGEP1_64(VtableField, Offset/8); const llvm::Type *AddressPointPtrTy = VtableAddressPoint->getType()->getPointerTo(); - VtableField = Builder.CreateBitCast(ThisPtr, AddressPointPtrTy); + VtableField = Builder.CreateBitCast(VtableField, AddressPointPtrTy); // Store address point Builder.CreateStore(VtableAddressPoint, VtableField); -- cgit v1.2.3