diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-06-10 05:00:13 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-06-10 05:00:13 +0000 |
commit | dbdbbd7a7b728bf7734c992fe72b0e549d31a710 (patch) | |
tree | d29433f9cb306616bc8fe759230261f31f089df2 | |
parent | 7643536c36b0449256d5ee2efc03a7e4a784a0b3 (diff) |
Fix getTrueExpr for ConditionalOperator to actually work. No testcase
because it's currently unused.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52166 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Expr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index 42344d0fea..0314a66a1d 100644 --- a/include/clang/AST/Expr.h +++ b/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 ?: |