Displaying 2 results from an estimated 2 matches for "99809".
Did you mean:
9980
2010 Mar 29
0
[LLVMdev] Union types
...be needed
to get unions up to scratch? They do seem to be a neat solution and I'd
be sad to see them removed.
Tim.
-------------- next part --------------
Index: lib/VMCore/Constants.cpp
===================================================================
--- lib/VMCore/Constants.cpp (revision 99809)
+++ lib/VMCore/Constants.cpp (working copy)
@@ -59,6 +59,7 @@
case Type::PointerTyID:
return ConstantPointerNull::get(cast<PointerType>(Ty));
case Type::StructTyID:
+ case Type::UnionTyID:
case Type::ArrayTyID:
case Type::VectorTyID:
return ConstantAggregateZero::get(T...
2010 Mar 29
6
[LLVMdev] Union types
Hi All,
I've noticed the union type in the language manual [1] but it seems
it's not used too much.
According to the manual, the code:
union {
int a;
double b;
} a;
Could be compiled to:
%union.anon = type union { i32, double }
@a = common global %union.anon zeroinitializer, align 8 ;
<%union.anon*> [#uses=0]
But when I try to assemble it, I get:
$ llvm-as union.ll