New expression in ToElemVisitor

Jacob Carlborg doob at me.com
Mon Aug 20 11:30:15 UTC 2018


On Monday, 20 August 2018 at 09:35:04 UTC, kinke wrote:

> Yeah, results of expressions are DValues, an association of an 
> arbitrary llvm::Value* (not just globals) with a D type. Not 
> having a D type wasn't an issue until now, as all expressions 
> have one (Expression::type); why is yours special? - As it's a 
> global (presumably ObjC stuff)

Yes, it's for Objective-C, as we discussed earlier [1]. I've 
created the type for the Value like Clang does, using 
`StructType::create()`.

> global (presumably ObjC stuff), you could probably get away 
> with a void ptr.

You mean an instance of `TypePointer`?

[1] 
https://forum.dlang.org/thread/slflfkzldrtzagqpihgb@forum.dlang.org

--
/Jacob Carlborg


More information about the digitalmars-d-ldc mailing list