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 | e8caa2a72f4846ef01cde232b753ac180f9b20db (patch) | |
| tree | a02790c303c676b6eb987525522a1b5671e8f769 /clang | |
| parent | 776d3401d274c80f782dc39fa6c51954af14bf76 (diff) | |
| download | bcm5719-llvm-e8caa2a72f4846ef01cde232b753ac180f9b20db.tar.gz bcm5719-llvm-e8caa2a72f4846ef01cde232b753ac180f9b20db.zip | |
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
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/CodeGen/CGExpr.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp index ea14242a002..40657586170 100644 --- a/clang/lib/CodeGen/CGExpr.cpp +++ b/clang/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. |

