diff options
| author | Richard Trieu <rtrieu@google.com> | 2014-08-07 02:09:05 +0000 |
|---|---|---|
| committer | Richard Trieu <rtrieu@google.com> | 2014-08-07 02:09:05 +0000 |
| commit | bd3305b60f1b25727618b2f01e5c0a639e569eeb (patch) | |
| tree | 8671cb00587ed2671da67333b0c952ed75709075 /clang/lib | |
| parent | f650c0afd4db97ec9a3f07c1b6a652caede8a6f5 (diff) | |
| download | bcm5719-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')
| -rw-r--r-- | clang/lib/Sema/SemaChecking.cpp | 2 |
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); |

