isAssignmentOp is not available on older clang

Change-Id: I1ee7a8266a2ad0e14a28fab7aa0095b15647d5b0
This commit is contained in:
Noel Grandin
2017-02-17 10:03:12 +02:00
parent 1400cec164
commit 48f9640602

View File

@@ -166,7 +166,9 @@ try_again:
} }
} else if (const CXXOperatorCallExpr * operatorCall = dyn_cast<CXXOperatorCallExpr>(parent)) } else if (const CXXOperatorCallExpr * operatorCall = dyn_cast<CXXOperatorCallExpr>(parent))
{ {
if (operatorCall->isAssignmentOp()) { auto oo = operatorCall->getOperator();
if (oo == OO_Equal
|| (oo >= OO_PlusEqual && oo <= OO_GreaterGreaterEqual)) {
bWrite = true; bWrite = true;
} else { } else {
bRead = true; bRead = true;