summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema
diff options
context:
space:
mode:
authorRichard Trieu <rtrieu@google.com>2014-08-07 02:09:05 +0000
committerRichard Trieu <rtrieu@google.com>2014-08-07 02:09:05 +0000
commitbd3305b60f1b25727618b2f01e5c0a639e569eeb (patch)
tree8671cb00587ed2671da67333b0c952ed75709075 /clang/lib/Sema
parentf650c0afd4db97ec9a3f07c1b6a652caede8a6f5 (diff)
downloadbcm5719-llvm-bd3305b60f1b25727618b2f01e5c0a639e569eeb.tar.gz
bcm5719-llvm-bd3305b60f1b25727618b2f01e5c0a639e569eeb.zip
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
Diffstat (limited to 'clang/lib/Sema')
-rw-r--r--clang/lib/Sema/SemaChecking.cpp2
1 files changed, 1 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud