Dan Kolsoi

Results 260 comments of Dan Kolsoi

Thanks @joecorcoran!! I really appreciate that!

Hi, thanks for reporting this issue! I'm not quite sure why this is happening - it seems like rustc doesn't allow for a name field at all and just [passes...

I think something like this should work: ```rust let context = Context::create(); let module = context.create_module("my_mod"); let my_str = "Hello, World"; let i8_type = context.i8_type(); let i8_array_type = i8_type.array_type(my_str.len() as...

In my edit to my previous comment, I mentioned you could just use almost identical code but with an i8_pointer_type, and as long as you be sure to add a...

Okay, so, I don't have a full example but I updated the build_cast method after reading some LLVM docs and you should be able to cast an array pointer to...

@Redrield This seems to be an LLVM specific issue. This happens because the global string needs to be created in a function (I don't really get why, since it's global,...

Maybe Inkwell should require a function value to be passed into the create string global method even if it isn't actually used... Definitely would need to document that

Dunno, seems odd since you can have multiple blocks per function, but maybe. I'll have to take a look at librustc_trans.

It looks like librustc_trans also supports creating a builder without a function, hmm: https://github.com/rust-lang/rust/blob/master/src/librustc_codegen_llvm/builder.rs#L61-L84

I'm not sure that there's anything we can do here as the enum variant is determined by LLVM not inkwell. I think it happens because functions sort of decay into...