| ... | @@ -459,9 +459,10 @@ fn transImplicitCastExpr( | ... | @@ -459,9 +459,10 @@ fn transImplicitCastExpr( |
| 459 | const c = rp.c; | 459 | const c = rp.c; |
| 460 | switch (ZigClangImplicitCastExpr_getCastKind(expr)) { | 460 | switch (ZigClangImplicitCastExpr_getCastKind(expr)) { |
| 461 | .BitCast => { | 461 | .BitCast => { |
| 462 | const node = try transExpr(rp, scope, @ptrCast(*const ZigClangExpr, expr), .used, .r_value); | 462 | const sub_expr = ZigClangImplicitCastExpr_getSubExpr(expr); |
| | 463 | const node = try transExpr(rp, scope, @ptrCast(*const ZigClangExpr, sub_expr), .used, .r_value); |
| 463 | const dest_type = getExprQualType(c, @ptrCast(*const ZigClangExpr, expr)); | 464 | const dest_type = getExprQualType(c, @ptrCast(*const ZigClangExpr, expr)); |
| 464 | const src_type = getExprQualType(c, ZigClangImplicitCastExpr_getSubExpr(expr)); | 465 | const src_type = getExprQualType(c, sub_expr); |
| 465 | return try transCCast(rp, scope, ZigClangImplicitCastExpr_getBeginLoc(expr), dest_type, src_type, node.node); | 466 | return try transCCast(rp, scope, ZigClangImplicitCastExpr_getBeginLoc(expr), dest_type, src_type, node.node); |
| 466 | }, | 467 | }, |
| 467 | else => |kind| return revertAndWarn( | 468 | else => |kind| return revertAndWarn( |