mirror of
https://github.com/ziglang/zig.git
synced 2026-02-12 20:37:54 +00:00
Sema: restore propagation of error.GenericPoison for checking vectors
This commit is contained in:
parent
c9598c4cd3
commit
513a53e9aa
@ -14118,8 +14118,8 @@ fn checkVectorizableBinaryOperands(
|
||||
lhs_src: LazySrcLoc,
|
||||
rhs_src: LazySrcLoc,
|
||||
) CompileError!void {
|
||||
const lhs_zig_ty_tag = lhs_ty.zigTypeTag();
|
||||
const rhs_zig_ty_tag = rhs_ty.zigTypeTag();
|
||||
const lhs_zig_ty_tag = try lhs_ty.zigTypeTagOrPoison();
|
||||
const rhs_zig_ty_tag = try rhs_ty.zigTypeTagOrPoison();
|
||||
if (lhs_zig_ty_tag == .Vector and rhs_zig_ty_tag == .Vector) {
|
||||
const lhs_len = lhs_ty.vectorLen();
|
||||
const rhs_len = rhs_ty.vectorLen();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user