mirror of
https://github.com/ziglang/zig.git
synced 2026-11-22 04:37:39 -05:00
Sema: analyzeInlineCallArg needs a block for the arg and the param
This commit is contained in:
1 parent
370793a36b
commit
2f34d06d01
3 files changed
+58
-22
No files matched your search
@@ -5940,7 +5940,9 @@ pub fn argSrc(
|
||||
gpa: Allocator,
|
||||
decl: *Decl,
|
||||
arg_i: usize,
|
||||
bound_arg_src: ?LazySrcLoc,
|
||||
) LazySrcLoc {
|
||||
if (arg_i == 0 and bound_arg_src != null) return bound_arg_src.?;
|
||||
@setCold(true);
|
||||
const tree = decl.getFileScope().getTree(gpa) catch |err| {
|
||||
// In this case we emit a warning + a less precise source location.
|
||||
|
||||
Reference in new issue
Block a user