mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
Replace an old-style cast.
This commit is contained in:
@@ -2953,7 +2953,7 @@ DValue* StructLiteralExp::toElem(IRState* p)
|
||||
// ready elements data
|
||||
assert(elements && "struct literal has null elements");
|
||||
size_t nexprs = elements->dim;
|
||||
Expression** exprs = (Expression**)elements->data;
|
||||
Expression **exprs = reinterpret_cast<Expression **>(elements->data);
|
||||
|
||||
// might be reset to an actual i8* value so only a single bitcast is emitted.
|
||||
LLValue* voidptr = inProgressMemory;
|
||||
|
||||
Reference in New Issue
Block a user