summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprAgg.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-08-26 23:31:30 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-08-26 23:31:30 +0000
commitc71f094c088c60faef6e1258ebfedeb41e959061 (patch)
tree73a62185e0a5c51f161000926e90ae437f77c8bc /clang/lib/CodeGen/CGExprAgg.cpp
parentce2a5e18f2eac9eaf44136db8830fa2846dc3e64 (diff)
downloadbcm5719-llvm-c71f094c088c60faef6e1258ebfedeb41e959061.tar.gz
bcm5719-llvm-c71f094c088c60faef6e1258ebfedeb41e959061.zip
ir-gen for type convesion of class objects. WIP.
llvm-svn: 80178
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprAgg.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp
index 6f6daa79d0c..002c77430f8 100644
--- a/clang/lib/CodeGen/CGExprAgg.cpp
+++ b/clang/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) &&
OpenPOWER on IntegriCloud