Changeset 1aa4b71
- Timestamp:
- Dec 14, 2016, 2:10:42 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- a64644c
- Parents:
- cce9429
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/GenPoly/GenPoly.cc
rcce9429 r1aa4b71 219 219 expr = commaExpr->get_arg2(); 220 220 continue; 221 } else if ( ConditionalExpr * condExpr = dynamic_cast< ConditionalExpr * >( expr ) ) { 222 int lvl1; 223 int lvl2; 224 VariableExpr * var1 = getBaseVar( condExpr->get_arg2(), &lvl1 ); 225 VariableExpr * var2 = getBaseVar( condExpr->get_arg3(), &lvl2 ); 226 if ( lvl1 == lvl2 && var1 && var2 && var1->get_var() == var2->get_var() ) { 227 *levels = lvl1; 228 return var1; 229 } 230 break; 221 231 } else break; 222 232
Note: See TracChangeset
for help on using the changeset viewer.