Sema: analyzeInlineCallArg needs a block for the arg and the param

This commit is contained in:
Veikka Tuominen
2022-07-25 13:48:21 +03:00
parent 370793a36b
commit 2f34d06d01
3 changed files with 58 additions and 22 deletions

View File

@@ -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.