aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGClass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CodeGen/CGClass.cpp')
-rw-r--r--lib/CodeGen/CGClass.cpp2
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.