summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExprComplex.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-08 04:40:51 +0000
committerChris Lattner <sabre@nondot.org>2008-04-08 04:40:51 +0000
commitaa9c7aed0fd2cc29afae9875bab70d1c25345625 (patch)
tree4402f923c782e1acf48aea09d8098226bb2af5ef /clang/lib/CodeGen/CGExprComplex.cpp
parent2163265b533250ffa695fbfaa4d3a34f3b07a7b5 (diff)
downloadbcm5719-llvm-aa9c7aed0fd2cc29afae9875bab70d1c25345625.tar.gz
bcm5719-llvm-aa9c7aed0fd2cc29afae9875bab70d1c25345625.zip
Add support for C++ default arguments, and rework Parse-Sema
interaction for function parameters, fixing PR2046. Patch by Doug Gregor! llvm-svn: 49369
Diffstat (limited to 'clang/lib/CodeGen/CGExprComplex.cpp')
-rw-r--r--clang/lib/CodeGen/CGExprComplex.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprComplex.cpp b/clang/lib/CodeGen/CGExprComplex.cpp
index 1e8c8a37f2d..a486d6ae15d 100644
--- a/clang/lib/CodeGen/CGExprComplex.cpp
+++ b/clang/lib/CodeGen/CGExprComplex.cpp
@@ -120,6 +120,9 @@ public:
ComplexPairTy VisitUnaryExtension(const UnaryOperator *E) {
return Visit(E->getSubExpr());
}
+ ComplexPairTy VisitCXXDefaultArgExpr(CXXDefaultArgExpr *DAE) {
+ return Visit(DAE->getExpr());
+ }
struct BinOpInfo {
ComplexPairTy LHS;
OpenPOWER on IntegriCloud