[cfe-commits] r41240 - /cfe/trunk/CodeGen/CGComplexExpr.cpp
Chris Lattner
sabre at nondot.org
Tue Aug 21 11:03:58 PDT 2007
Author: lattner
Date: Tue Aug 21 13:03:58 2007
New Revision: 41240
URL: http://llvm.org/viewvc/llvm-project?rev=41240&view=rev
Log:
implement support for complex subscripts.
Modified:
cfe/trunk/CodeGen/CGComplexExpr.cpp
Modified: cfe/trunk/CodeGen/CGComplexExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGComplexExpr.cpp?rev=41240&r1=41239&r2=41240&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGComplexExpr.cpp (original)
+++ cfe/trunk/CodeGen/CGComplexExpr.cpp Tue Aug 21 13:03:58 2007
@@ -69,10 +69,8 @@
ComplexPairTy VisitParenExpr(ParenExpr *PE) { return Visit(PE->getSubExpr());}
// l-values.
- ComplexPairTy VisitDeclRefExpr(DeclRefExpr *DRE) {
- return EmitLoadOfLValue(DRE);
- }
- // case Expr::ArraySubscriptExprClass:
+ ComplexPairTy VisitDeclRefExpr(Expr *E) { return EmitLoadOfLValue(E); }
+ ComplexPairTy VisitArraySubscriptExpr(Expr *E) { return EmitLoadOfLValue(E); }
// Operators.
// case Expr::UnaryOperatorClass:
More information about the cfe-commits
mailing list