Convert more call sites over to the new GetAddressOfBaseClass.
llvm-svn: 102272
diff --git a/clang/lib/CodeGen/CGClass.cpp b/clang/lib/CodeGen/CGClass.cpp
index 991b6a7..b8f7df9 100644
--- a/clang/lib/CodeGen/CGClass.cpp
+++ b/clang/lib/CodeGen/CGClass.cpp
@@ -184,7 +184,7 @@
// 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.