[cfe-commits] r76531 - in /cfe/trunk: lib/Analysis/CFG.cpp test/Analysis/dead-stores.c

Eli Friedman eli.friedman at gmail.com
Mon Jul 20 18:54:48 PDT 2009


On Mon, Jul 20, 2009 at 6:46 PM, Mike Stump<mrs at apple.com> wrote:
>  CFGBlock *CFGBuilder::VisitChooseExpr(ChooseExpr *C) {
> +  // See if this is a known constant.

It's a constant by definition.  You can use isConditionTrue() to find
out whether it's true or false.  Also, there's a convenience method
getChosenSubExpr() to get the chosen sub-expression.

-Eli




More information about the cfe-commits mailing list