diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-07-30 01:10:26 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-07-30 01:10:26 +0000 |
commit | d254a25bc1793a2387e37b96568285883fb12eff (patch) | |
tree | dd058bb543c0475c9608ef17bbfe412783f46e71 /lib/CodeGen | |
parent | f66eab0bc2a181dee341437ad53cddd5a633586e (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@77562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/CGExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index ea14242a00..4065758617 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -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. |