aboutsummaryrefslogtreecommitdiff
path: root/src/stage1/analyze.cpp
diff options
context:
space:
mode:
authorLemonBoy <thatlemon@gmail.com>2021-04-25 16:50:41 +0200
committerLemonBoy <thatlemon@gmail.com>2021-04-25 16:50:41 +0200
commitae15022406e5d59787195130cfd5261c6336f41c (patch)
treeff5184e7f432c08496bcbee186f5c5856c6efca1 /src/stage1/analyze.cpp
parent19cec0db1e8a9fefd8295c81edb03d631c624e62 (diff)
downloadzig-ae15022406e5d59787195130cfd5261c6336f41c.tar.gz
zig-ae15022406e5d59787195130cfd5261c6336f41c.zip
translate-c: Fix casting of function pointers
The @ptrCast(X, @alignCast(@alignOf(T), Y)) pattern is only correct if T is not a function type or a pointer, in that case the @alignOf refers to the pointer itself and not to the pointee type.
Diffstat (limited to 'src/stage1/analyze.cpp')
0 files changed, 0 insertions, 0 deletions