mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 15:10:59 +03:00
Use typed gep in DtoCastClass
(#4082)
This commit is contained in:
parent
68ae4352ab
commit
a79a30c41e
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ DValue *DtoCastClass(const Loc &loc, DValue *val, Type *_to) {
|
|||
if (offset != 0) {
|
||||
assert(offset > 0);
|
||||
v = DtoBitCast(v, getVoidPtrType());
|
||||
v = DtoGEP1(v, DtoConstUint(offset));
|
||||
v = DtoGEP1(LLType::getInt8Ty(gIR->context()), v, DtoConstUint(offset));
|
||||
}
|
||||
IF_LOG {
|
||||
Logger::cout() << "V = " << *v << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue