update analysis of builtin functions
This commit is contained in:
parent
ecb18949df
commit
0e57f694be
@ -989,16 +989,22 @@ fn resolveTypeOfNodeUncached(analyser: *Analyser, node_handle: NodeWithHandle) e
|
|||||||
|
|
||||||
const cast_map = std.ComptimeStringMap(void, .{
|
const cast_map = std.ComptimeStringMap(void, .{
|
||||||
.{"@as"},
|
.{"@as"},
|
||||||
|
.{"@atomicLoad"},
|
||||||
|
.{"@atomicRmw"},
|
||||||
|
.{"@atomicStore"},
|
||||||
.{"@bitCast"},
|
.{"@bitCast"},
|
||||||
.{"@fieldParentPtr"},
|
.{"@mulAdd"},
|
||||||
|
.{"@errSetCast"},
|
||||||
|
.{"@fieldParentPtr"}, // the return type is actually a pointer
|
||||||
.{"@floatCast"},
|
.{"@floatCast"},
|
||||||
.{"@floatToInt"},
|
.{"@intFromFloat"},
|
||||||
.{"@intCast"},
|
.{"@intCast"},
|
||||||
.{"@intToEnum"},
|
.{"@enumFromInt"},
|
||||||
.{"@intToFloat"},
|
.{"@floatFromInt"},
|
||||||
.{"@intToPtr"},
|
.{"@ptrFromInt"},
|
||||||
.{"@truncate"},
|
|
||||||
.{"@ptrCast"},
|
.{"@ptrCast"},
|
||||||
|
.{"@truncate"},
|
||||||
|
.{"@unionInit"},
|
||||||
});
|
});
|
||||||
if (cast_map.has(call_name)) {
|
if (cast_map.has(call_name)) {
|
||||||
if (params.len < 1) return null;
|
if (params.len < 1) return null;
|
||||||
|
Loading…
Reference in New Issue
Block a user