summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/include/clang/AST/Expr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h
index 42344d0feac..0314a66a1d3 100644
--- a/clang/include/clang/AST/Expr.h
+++ b/clang/include/clang/AST/Expr.h
@@ -972,7 +972,7 @@ public:
// e.g: x ?: y is shorthand for x ? x : y, except that the expression "x"
// is only evaluated once.
Expr *getTrueExpr() const {
- return SubExprs[LHS] ? SubExprs[COND] : SubExprs[LHS];
+ return SubExprs[LHS] ? SubExprs[LHS] : SubExprs[COND];
}
// getTrueExpr - Return the subexpression representing the value of the ?:
OpenPOWER on IntegriCloud