diff options
author | Anders Carlsson <andersca@mac.com> | 2010-04-24 21:12:55 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2010-04-24 21:12:55 +0000 |
commit | fc89c31a329eb6b36c6dbd8b7cb945d1a831650e (patch) | |
tree | 53bb3333be6f030f09b1da3f473c1d01d2dee149 /lib/CodeGen/CGClass.cpp | |
parent | f86fcb341116e72c5497e6b57695f46eca5f29e9 (diff) |
Convert more call sites over to the new GetAddressOfBaseClass.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@102272 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r-- | lib/CodeGen/CGClass.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGClass.cpp b/lib/CodeGen/CGClass.cpp index 991b6a71d3..b8f7df927c 100644 --- a/lib/CodeGen/CGClass.cpp +++ b/lib/CodeGen/CGClass.cpp @@ -184,7 +184,7 @@ CodeGenFunction::GetAddressOfBaseClass(llvm::Value *Value, // Get the base pointer type. const llvm::Type *BasePtrTy = - llvm::PointerType::getUnqual(ConvertType((BasePath.end()[-1])->getType())); + ConvertType((BasePath.end()[-1])->getType())->getPointerTo(); if (!NonVirtualOffset && !VBase) { // Just cast back. |