forked from OSchip/llvm-project
Remove bogus "unsupported" case for vectors (which shouldn't
ever trigger). Add an "unsupported" case that triggers for C++ code. It would be nice if someone would implement this properly... it shouldn't be too hard, but I haven't looked closely at the relevant code. llvm-svn: 77562
This commit is contained in:
parent
776d3401d2
commit
e8caa2a72f
|
@ -1116,8 +1116,7 @@ LValue CodeGenFunction::EmitCompoundLiteralLValue(const CompoundLiteralExpr* E){
|
|||
}
|
||||
|
||||
LValue CodeGenFunction::EmitConditionalOperator(const ConditionalOperator* E) {
|
||||
// We don't handle vectors yet.
|
||||
if (E->getType()->isVectorType())
|
||||
if (E->isLvalue(getContext()) == Expr::LV_Valid)
|
||||
return EmitUnsupportedLValue(E, "conditional operator");
|
||||
|
||||
// ?: here should be an aggregate.
|
||||
|
|
Loading…
Reference in New Issue