================
Comment at: lib/CodeGen/CGExprCXX.cpp:1632
@@ +1631,3 @@
+ if (const auto *ACO = dyn_cast<AbstractConditionalOperator>(E))
+ return isGLValueFromPointerDeref(ACO->getTrueExpr()) ||
+ isGLValueFromPointerDeref(ACO->getFalseExpr());
----------------
Do you need to walk through `OpaqueValueExpr`s to support this for binary
conditional operators? Does this work:
struct T { operator bool(); } *p, t, &q = t;
typeid(*p ?: q);
http://reviews.llvm.org/D4592
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits