[cfe-commits] r77562 - /cfe/trunk/lib/CodeGen/CGExpr.cpp
Eli Friedman
eli.friedman at gmail.com
Wed Jul 29 18:10:27 PDT 2009
Author: efriedma
Date: Wed Jul 29 20:10:26 2009
New Revision: 77562
URL: http://llvm.org/viewvc/llvm-project?rev=77562&view=rev
Log:
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.
Modified:
cfe/trunk/lib/CodeGen/CGExpr.cpp
Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=77562&r1=77561&r2=77562&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Wed Jul 29 20:10:26 2009
@@ -1116,8 +1116,7 @@
}
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.
More information about the cfe-commits
mailing list