diff options
| author | Anders Carlsson <andersca@mac.com> | 2009-04-14 16:58:56 +0000 |
|---|---|---|
| committer | Anders Carlsson <andersca@mac.com> | 2009-04-14 16:58:56 +0000 |
| commit | 5f4307b7ba164b03c853c8d3eb4674d33f8967a6 (patch) | |
| tree | 78c5a7944c965c7889abbfdf0c31408a8dcbb6a0 /lib/CodeGen/CGExprScalar.cpp | |
| parent | 0fab49f7daa53a53882f19c2879feb210608fe00 (diff) | |
| download | clang-5f4307b7ba164b03c853c8d3eb4674d33f8967a6.tar.gz clang-5f4307b7ba164b03c853c8d3eb4674d33f8967a6.tar.bz2 clang-5f4307b7ba164b03c853c8d3eb4674d33f8967a6.tar.xz | |
Support code generation of 'this' exprs
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69050 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprScalar.cpp')
| -rw-r--r-- | lib/CodeGen/CGExprScalar.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CGExprScalar.cpp b/lib/CodeGen/CGExprScalar.cpp index 928ad29ab7..98c41e24b6 100644 --- a/lib/CodeGen/CGExprScalar.cpp +++ b/lib/CodeGen/CGExprScalar.cpp @@ -256,9 +256,14 @@ public: return Visit(E->getSubExpr()); } Value *VisitUnaryOffsetOf(const UnaryOperator *E); + + // C++ Value *VisitCXXDefaultArgExpr(CXXDefaultArgExpr *DAE) { return Visit(DAE->getExpr()); } + Value *VisitCXXThisExpr(CXXThisExpr *TE) { + return CGF.LoadCXXThis(); + } // Binary Operators. Value *EmitMul(const BinOpInfo &Ops) { |
