[llvm-commits] [llvm-gcc-4.2] r40685 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Anton Korobeynikov
asl at math.spbu.ru
Wed Aug 1 13:00:04 PDT 2007
Author: asl
Date: Wed Aug 1 15:00:04 2007
New Revision: 40685
URL: http://llvm.org/viewvc/llvm-project?rev=40685&view=rev
Log:
Emit blank ctors (e.g. struct foo = {}) properly.
Modified:
llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=40685&r1=40684&r2=40685&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Wed Aug 1 15:00:04 2007
@@ -5521,8 +5521,9 @@
case ARRAY_TYPE:
case RECORD_TYPE:
default:
- if (elt) {
+ if (elt && VEC_length(constructor_elt, elt)) {
// We don't handle elements yet.
+
TODO(exp);
}
return 0;
More information about the llvm-commits
mailing list