[llvm-commits] CVS: llvm-gcc/gcc/llvm-expand.c
Chris Lattner
lattner at cs.uiuc.edu
Tue Jul 6 21:23:02 PDT 2004
Changes in directory llvm-gcc/gcc:
llvm-expand.c updated: 1.46 -> 1.47
---
Log message:
Fix PR396: http://llvm.cs.uiuc.edu/PR396 and test/Regression/CFrontend/2004-07-06-FunctionCast.c
---
Diffs of the changes: (+2 -0)
Index: llvm-gcc/gcc/llvm-expand.c
diff -u llvm-gcc/gcc/llvm-expand.c:1.46 llvm-gcc/gcc/llvm-expand.c:1.47
--- llvm-gcc/gcc/llvm-expand.c:1.46 Mon Jun 28 23:43:42 2004
+++ llvm-gcc/gcc/llvm-expand.c Tue Jul 6 21:22:24 2004
@@ -5762,6 +5762,8 @@
return llvm_constant_VoidPtr_null;
DestTy = llvm_type_get_from_tree(type);
+ if (DestTy->ID == FunctionTyID) DestTy = llvm_type_get_pointer(DestTy);
+
isDestTyComposite = llvm_type_is_composite(DestTy);
/* Check to make sure DestLoc is set when it is supposed to be. */
More information about the llvm-commits
mailing list