]> granicus.if.org Git - clang/commit
Minor tweaks on doug's objc recovery patch: the caller
authorChris Lattner <sabre@nondot.org>
Mon, 31 May 2010 18:18:22 +0000 (18:18 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 31 May 2010 18:18:22 +0000 (18:18 +0000)
commitc59cb38810c63a806270385f79ea84e0203754ea
tree610b846d11888eb4365f2b4eef33c91915508bc8
parent61ecf35dcb18f53ea4b41ce9b8152f8046616be6
Minor tweaks on doug's objc recovery patch: the caller
of isSimpleObjCMessageExpression checks the language,
so change a dynamic check into an assert.

isSimpleObjCMessageExpression is expensive, so only do it
in the common case when it is likely to matter: when the [
of the postfix expr starts on a new line.  This should avoid
doing lookahead for every array expression.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@105229 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Parse/ParseExpr.cpp
lib/Parse/ParseObjc.cpp