question mark instead of the context of the conditional operator. The
condition does not need the context of the conditional operator at all.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@215048
91177308-0d34-0410-b5e6-
96231b3b80d8
void CheckConditionalOperator(Sema &S, ConditionalOperator *E,
SourceLocation CC, QualType T) {
- AnalyzeImplicitConversions(S, E->getCond(), CC);
+ AnalyzeImplicitConversions(S, E->getCond(), E->getQuestionLoc());
bool Suspicious = false;
CheckConditionalOperand(S, E->getTrueExpr(), T, CC, Suspicious);