diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-12-27 03:44:17 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-12-27 03:44:17 +0000 |
commit | af76ad73ed7bfb6f23d52fde872dc3beaaa0de12 (patch) | |
tree | c30f2fab66119596a0befa798f72a9e93cd66900 /clang/lib/CodeGen | |
parent | 4e83bd2795bc7da9c81dd9e8b96ea9e1d7557e53 (diff) | |
download | bcm5719-llvm-af76ad73ed7bfb6f23d52fde872dc3beaaa0de12.tar.gz bcm5719-llvm-af76ad73ed7bfb6f23d52fde872dc3beaaa0de12.zip |
Fix obvious mistake.
llvm-svn: 92172
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGCXX.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |