diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-10-03 14:56:57 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-10-03 14:56:57 +0000 |
| commit | 32bfb1ce8fafcb9dde43a50bb9838aaf707a67da (patch) | |
| tree | 934e9db7edd8dc4ea6df7b0a00613a954f6a43bd /clang/lib/CodeGen/CGExprAgg.cpp | |
| parent | 6ad01742d5665402eb181457b92278e85ebb3c5b (diff) | |
Move some functions from CodeGenFunctions to CodeGenModule so they can be used by CGExprConstant.
llvm-svn: 83263
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprAgg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index 017efd3c8811..5307d147538c 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/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"); |
