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

This commit is contained in:
Veikka Tuominen committed 2022-07-25 22:04:08 +03:00
1 parent 370793a36b
commit 2f34d06d01
3 files changed
+58 -22

No files matched your search

+2
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.