From fc89c31a329eb6b36c6dbd8b7cb945d1a831650e Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 24 Apr 2010 21:12:55 +0000 Subject: 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 --- lib/CodeGen/CGClass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CGClass.cpp') 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. -- cgit v1.2.3-70-g09d2