[cfe-commits] r92172 - /cfe/trunk/lib/CodeGen/CGCXX.cpp
Eli Friedman
eli.friedman at gmail.com
Sat Dec 26 19:44:17 PST 2009
Author: efriedma
Date: Sat Dec 26 21:44:17 2009
New Revision: 92172
URL: http://llvm.org/viewvc/llvm-project?rev=92172&view=rev
Log:
Fix obvious mistake.
Modified:
cfe/trunk/lib/CodeGen/CGCXX.cpp
Modified: cfe/trunk/lib/CodeGen/CGCXX.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGCXX.cpp?rev=92172&r1=92171&r2=92172&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGCXX.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGCXX.cpp Sat Dec 26 21:44:17 2009
@@ -1118,7 +1118,7 @@
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);
More information about the cfe-commits
mailing list