- Fix commit in Parser.h (patch by Kevin Andre).

- Add comment and minor cleanup to yesterday's fix to ParseCallExpr().

llvm-svn: 40492
This commit is contained in:
Steve Naroff 2007-07-25 20:45:33 +00:00
parent 5e5599b7ce
commit b8af1c2bf6
2 changed files with 3 additions and 5 deletions

View File

@ -434,12 +434,10 @@ ParseCallExpr(ExprTy *fn, SourceLocation LParenLoc,
QualType lhsType = proto->getArgType(i);
QualType rhsType = argExpr->getType();
// C99 6.7.5.3p7
// If necessary, apply function/array conversion. C99 6.7.5.3p[7,8].
if (const ArrayType *ary = lhsType->isArrayType())
lhsType = Context.getPointerType(ary->getElementType());
// C99 6.7.5.3p8
if (lhsType->isFunctionType())
else if (lhsType->isFunctionType())
lhsType = Context.getPointerType(lhsType);
AssignmentCheckResult result = CheckSingleAssignmentConstraints(lhsType,

View File

@ -225,7 +225,7 @@ private:
}
/// SkipUntil - Read tokens until we get to the specified token, then consume
/// it (unless DontConsume is false). Because we cannot guarantee that the
/// it (unless DontConsume is true). Because we cannot guarantee that the
/// token will ever occur, this skips to the next token, or to some likely
/// good stopping point. If StopAtSemi is true, skipping will stop at a ';'
/// character.