aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIntegratedQuantum <jahe788@gmail.com>2023-06-13 10:16:51 +0200
committerAndrew Kelley <andrew@ziglang.org>2023-06-13 10:45:57 -0700
commit02df9aa9762bac2217b44121a5bae3afccb5ba71 (patch)
treecefd810a666527d813f3248145b6573fe382ad4e /src
parentdf6319418a08b611bae23307ace6688f95bedea2 (diff)
downloadzig-02df9aa9762bac2217b44121a5bae3afccb5ba71.tar.gz
zig-02df9aa9762bac2217b44121a5bae3afccb5ba71.zip
Add a compiler error for @mulAdd with int vectors.
Diffstat (limited to 'src')
-rw-r--r--src/Sema.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Sema.zig b/src/Sema.zig
index 7c4968b0e5..32cd218798 100644
--- a/src/Sema.zig
+++ b/src/Sema.zig
@@ -22670,8 +22670,8 @@ fn zirMulAdd(sema: *Sema, block: *Block, inst: Zir.Inst.Index) CompileError!Air.
const maybe_addend = try sema.resolveMaybeUndefVal(addend);
const mod = sema.mod;
- switch (ty.zigTypeTag(mod)) {
- .ComptimeFloat, .Float, .Vector => {},
+ switch (ty.scalarType(mod).zigTypeTag(mod)) {
+ .ComptimeFloat, .Float => {},
else => return sema.fail(block, src, "expected vector of floats or float type, found '{}'", .{ty.fmt(sema.mod)}),
}