Skip to content
Commit d85026d9 authored by Ted Kremenek's avatar Ted Kremenek
Browse files

Added getTrueExpr() and getFalseExpr() to ConditionalOperator. These methods

provide handy accessors to the subexpressions of ConditionalOperator that
automatically take into account the GCC extension where the "LHS" expression is
omitted: e.g x ?: y;. When the LHS expression is available, getTrueExpr() is the
same as getLHS(); when LHS is NULL, getTrueExpr() returns the condition expression.

llvm-svn: 44536
parent 4814cd22
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment