summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-10-03 14:56:57 +0000
committerAnders Carlsson <andersca@mac.com>2009-10-03 14:56:57 +0000
commit2b3583573ba6b26b605aacaad9a50492fb3d6fe6 (patch)
tree3c646b8e2903a50ce22032e9b5e76171056b8928 /lib/CodeGen/CGExprAgg.cpp
parentee383163a656a7e8d99efa4e5ee98c705c7fdf89 (diff)
downloadclang-2b3583573ba6b26b605aacaad9a50492fb3d6fe6.tar.gz
clang-2b3583573ba6b26b605aacaad9a50492fb3d6fe6.tar.bz2
clang-2b3583573ba6b26b605aacaad9a50492fb3d6fe6.tar.xz
Move some functions from CodeGenFunctions to CodeGenModule so they can be used by CGExprConstant.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@83263 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--lib/CodeGen/CGExprAgg.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp
index 017efd3c88..5307d14753 100644
--- a/lib/CodeGen/CGExprAgg.cpp
+++ b/lib/CodeGen/CGExprAgg.cpp
@@ -239,7 +239,7 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) {
cast<CXXRecordDecl>(E->getType()->getAs<MemberPointerType>()->
getClass()->getAs<RecordType>()->getDecl());
- llvm::Constant *Adj = CGF.GetCXXBaseClassOffset(DstDecl, SrcDecl);
+ llvm::Constant *Adj = CGF.CGM.GetCXXBaseClassOffset(DstDecl, SrcDecl);
if (Adj)
SrcAdj = Builder.CreateAdd(SrcAdj, Adj, "adj");