[llvm-commits] [dragonegg] r155558 - /dragonegg/trunk/src/Convert.cpp
Duncan Sands
baldrick at free.fr
Wed Apr 25 10:28:34 PDT 2012
Author: baldrick
Date: Wed Apr 25 12:28:34 2012
New Revision: 155558
URL: http://llvm.org/viewvc/llvm-project?rev=155558&view=rev
Log:
Fix the gcc-4.5 build: it doesn't have gimple_assign_rhs3.
Modified:
dragonegg/trunk/src/Convert.cpp
Modified: dragonegg/trunk/src/Convert.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/Convert.cpp?rev=155558&r1=155557&r2=155558&view=diff
==============================================================================
--- dragonegg/trunk/src/Convert.cpp (original)
+++ dragonegg/trunk/src/Convert.cpp Wed Apr 25 12:28:34 2012
@@ -8532,7 +8532,9 @@
tree_code code = gimple_assign_rhs_code(stmt);
tree rhs1 = gimple_assign_rhs1(stmt);
tree rhs2 = gimple_assign_rhs2(stmt);
+#if (GCC_MINOR > 6)
tree rhs3 = gimple_assign_rhs3(stmt);
+#endif
Value *RHS = 0;
switch (code) {
@@ -8680,9 +8682,11 @@
RHS = EmitReg_WIDEN_MULT_EXPR(type, rhs1, rhs2); break;
// Ternary expressions.
+#if (GCC_MINOR > 6)
case COND_EXPR:
case VEC_COND_EXPR:
RHS = EmitReg_CondExpr(rhs1, rhs2, rhs3); break;
+#endif
}
return TriviallyTypeConvert(RHS, getRegType(type));
More information about the llvm-commits
mailing list