[cfe-commits] r39199 - /cfe/cfe/trunk/Parse/ParseExpr.cpp
sabre at cs.uiuc.edu
sabre at cs.uiuc.edu
Wed Jul 11 09:41:04 PDT 2007
Author: sabre
Date: Wed Jul 11 11:41:03 2007
New Revision: 39199
URL: http://llvm.org/viewvc/llvm-project?rev=39199&view=rev
Log:
Implement a TODO: properly invoke actions for the * in things like:
where P is a pointer.
int A[*P];
Modified:
cfe/cfe/trunk/Parse/ParseExpr.cpp
Modified: cfe/cfe/trunk/Parse/ParseExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/cfe/trunk/Parse/ParseExpr.cpp?rev=39199&r1=39198&r2=39199&view=diff
==============================================================================
--- cfe/cfe/trunk/Parse/ParseExpr.cpp (original)
+++ cfe/cfe/trunk/Parse/ParseExpr.cpp Wed Jul 11 11:41:03 2007
@@ -269,7 +269,10 @@
ExprResult Res = ParseCastExpression(false);
if (Res.isInvalid) return Res;
- // TODO: Combine StarTok + Res to get the new AST.
+ // Combine StarTok + Res to get the new AST for the combined expression..
+ Res = Actions.ParseUnaryOp(StarTok.getLocation(), tok::star, Res.Val);
+ if (Res.isInvalid) return Res;
+
// We have to parse an entire cast-expression before starting the
// ParseRHSOfBinaryExpression method (which parses any trailing binops). Since
More information about the cfe-commits
mailing list