From bd3305b60f1b25727618b2f01e5c0a639e569eeb Mon Sep 17 00:00:00 2001 From: Richard Trieu Date: Thu, 7 Aug 2014 02:09:05 +0000 Subject: Update the context location of the condition of a conditional operator to the question mark instead of the context of the conditional operator. The condition does not need the context of the conditional operator at all. llvm-svn: 215048 --- clang/lib/Sema/SemaChecking.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Sema/SemaChecking.cpp') diff --git a/clang/lib/Sema/SemaChecking.cpp b/clang/lib/Sema/SemaChecking.cpp index 5128df817ce..0483341cef1 100644 --- a/clang/lib/Sema/SemaChecking.cpp +++ b/clang/lib/Sema/SemaChecking.cpp @@ -6193,7 +6193,7 @@ void CheckConditionalOperand(Sema &S, Expr *E, QualType T, 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); -- cgit v1.2.3