aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGCXXClass.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-10-13 10:07:13 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-10-13 10:07:13 +0000
commit3c0ef8cc0dc246bd3083e8cdd63005e8873d36d2 (patch)
tree58cf4d4581c365f1dcf6a6d99ec91d1c3066504d /lib/CodeGen/CGCXXClass.cpp
parent3ae9f48ae0d07a5aa352bf03c944f557a5ac4c95 (diff)
Simplify pointer creation with the new Type::getInt*Ptr methods.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83964 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXXClass.cpp')
-rw-r--r--lib/CodeGen/CGCXXClass.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGCXXClass.cpp b/lib/CodeGen/CGCXXClass.cpp
index ff879f5786..56a28fc9a0 100644
--- a/lib/CodeGen/CGCXXClass.cpp
+++ b/lib/CodeGen/CGCXXClass.cpp
@@ -144,8 +144,7 @@ CodeGenFunction::GetAddressCXXOfBaseClass(llvm::Value *BaseValue,
EmitBlock(CastNotNull);
}
- const llvm::Type *Int8PtrTy =
- llvm::PointerType::getUnqual(llvm::Type::getInt8Ty(VMContext));
+ const llvm::Type *Int8PtrTy = llvm::Type::getInt8PtrTy(VMContext);
llvm::Value *Offset =
GetCXXBaseClassOffset(*this, BaseValue, ClassDecl, BaseClassDecl);