[llvm-commits] CVS: llvm-gcc/gcc/llvm-types.c
Chris Lattner
lattner at cs.uiuc.edu
Thu Jun 3 01:58:02 PDT 2004
Changes in directory llvm-gcc/gcc:
llvm-types.c updated: 1.7 -> 1.8
---
Log message:
Assert on the PR355: http://llvm.cs.uiuc.edu/PR355 case instead of producing illegal code.
---
Diffs of the changes: (+1 -1)
Index: llvm-gcc/gcc/llvm-types.c
diff -u llvm-gcc/gcc/llvm-types.c:1.7 llvm-gcc/gcc/llvm-types.c:1.8
--- llvm-gcc/gcc/llvm-types.c:1.7 Fri May 7 14:24:53 2004
+++ llvm-gcc/gcc/llvm-types.c Thu Jun 3 01:49:31 2004
@@ -950,7 +950,7 @@
llvm_type *ArgTy = llvm_type_get_from_tree(TREE_VALUE(Args));
if (isPassedByInvisibleReference(TREE_VALUE(Args)))
ArgTy = llvm_type_get_pointer(ArgTy);
-
+ assert(ArgTy->ID != OpaqueTyID && "Cannot pass opaque type by value!");
NumArgs += llvm_type_get_num_recursive_elements(ArgTy);
}
More information about the llvm-commits
mailing list