[cfe-commits] r45020 - in /cfe/trunk: CodeGen/CGExprAgg.cpp test/CodeGen/struct.c
Seo Sanghyeon
sanxiyn at gmail.com
Thu Dec 13 17:09:11 PST 2007
Author: sanxiyn
Date: Thu Dec 13 19:09:11 2007
New Revision: 45020
URL: http://llvm.org/viewvc/llvm-project?rev=45020&view=rev
Log:
Implement dereference operator in aggregate expression
Modified:
cfe/trunk/CodeGen/CGExprAgg.cpp
cfe/trunk/test/CodeGen/struct.c
Modified: cfe/trunk/CodeGen/CGExprAgg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CodeGen/CGExprAgg.cpp?rev=45020&r1=45019&r2=45020&view=diff
==============================================================================
--- cfe/trunk/CodeGen/CGExprAgg.cpp (original)
+++ cfe/trunk/CodeGen/CGExprAgg.cpp Thu Dec 13 19:09:11 2007
@@ -61,6 +61,7 @@
// l-values.
void VisitDeclRefExpr(DeclRefExpr *DRE) { return EmitAggLoadOfLValue(DRE); }
void VisitMemberExpr(MemberExpr *ME) { return EmitAggLoadOfLValue(ME); }
+ void VisitUnaryDeref(UnaryOperator *E) { return EmitAggLoadOfLValue(E); }
// case Expr::ArraySubscriptExprClass:
Modified: cfe/trunk/test/CodeGen/struct.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/struct.c?rev=45020&r1=45019&r2=45020&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/struct.c (original)
+++ cfe/trunk/test/CodeGen/struct.c Thu Dec 13 19:09:11 2007
@@ -89,6 +89,10 @@
range r = p.range1;
}
+void f9(range *p)
+{
+ range r = *p;
+}
/* _Bool types */
More information about the cfe-commits
mailing list