summaryrefslogtreecommitdiff
path: root/lib/Parse/ParseExpr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Parse/ParseExpr.cpp')
-rw-r--r--lib/Parse/ParseExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseExpr.cpp b/lib/Parse/ParseExpr.cpp
index ea626c5604..dd43fcfdc0 100644
--- a/lib/Parse/ParseExpr.cpp
+++ b/lib/Parse/ParseExpr.cpp
@@ -361,7 +361,7 @@ Parser::ExprResult Parser::ParseLevel2Expr() {
Parser::ExprResult Parser::ParseLevel1Expr() {
SourceLocation OpLoc = Tok.getLocation();
IdentifierInfo *II = 0;
- if (IsPresent(tok::defined_operator)) {
+ if (IsPresent(tok::defined_operator) && !IsNextToken(tok::l_paren)) {
II = Tok.getIdentifierInfo();
Lex();
}