diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-26 23:31:30 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2009-08-26 23:31:30 +0000 |
commit | 64e690ecf7ba7ad560b0af631bb6f323c38f6da4 (patch) | |
tree | 4b06e8af2201f522ef3c8ea417ef71965ac076c7 /lib/CodeGen/CGExprAgg.cpp | |
parent | e9f8eb64ed2d41c23db4a9774768613d4e07a865 (diff) |
ir-gen for type convesion of class objects. WIP.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@80178 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprAgg.cpp')
-rw-r--r-- | lib/CodeGen/CGExprAgg.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExprAgg.cpp b/lib/CodeGen/CGExprAgg.cpp index 6f6daa79d0..002c77430f 100644 --- a/lib/CodeGen/CGExprAgg.cpp +++ b/lib/CodeGen/CGExprAgg.cpp @@ -177,7 +177,12 @@ void AggExprEmitter::VisitCastExpr(CastExpr *E) { LValue::MakeAddr(CastPtr, 0)); return; } - + if (E->getCastKind() == CastExpr::CK_UserDefinedConversion) { + CXXFunctionalCastExpr *CXXFExpr = cast<CXXFunctionalCastExpr>(E); + CGF.EmitCXXFunctionalCastExpr(CXXFExpr); + return; + } + // FIXME: Remove the CK_Unknown check here. assert((E->getCastKind() == CastExpr::CK_NoOp || E->getCastKind() == CastExpr::CK_Unknown) && |