aboutsummaryrefslogtreecommitdiff
path: root/src/Module.zig
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2022-07-25 13:48:21 +0300
committerVeikka Tuominen <git@vexu.eu>2022-07-25 22:04:08 +0300
commit2f34d06d01189ae6349e9c6341ba85ec50b92bb0 (patch)
treeecf6ce792234a32bca10b0a1e145595f401b270d /src/Module.zig
parent370793a36b3de34ead8456553a2aa2c56f0d3de8 (diff)
downloadzig-2f34d06d01189ae6349e9c6341ba85ec50b92bb0.tar.gz
zig-2f34d06d01189ae6349e9c6341ba85ec50b92bb0.zip
Sema: `analyzeInlineCallArg` needs a block for the arg and the param
Diffstat (limited to 'src/Module.zig')
-rw-r--r--src/Module.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Module.zig b/src/Module.zig
index c144c9acbd..1e684f6ea1 100644
--- a/src/Module.zig
+++ b/src/Module.zig
@@ -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.