From 84e46565a06a01eae3b0e92182b62fc0f521b3c2 Mon Sep 17 00:00:00 2001 From: Vern Paxson Date: Thu, 28 Nov 2024 21:51:05 -0800 Subject: [PATCH] fixup! fixes for (mostly ZAM) vector operation issues found by ASAN --- src/script_opt/ZAM/ZBody.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/script_opt/ZAM/ZBody.cc b/src/script_opt/ZAM/ZBody.cc index f4c7aa3fd2..25a7579cac 100644 --- a/src/script_opt/ZAM/ZBody.cc +++ b/src/script_opt/ZAM/ZBody.cc @@ -622,7 +622,8 @@ static void vec_exec(ZOp op, TypePtr t, VectorVal*& v1, const VectorVal* v2, con auto n = vec2.size(); if ( vec3.size() != n ) { - ZAM_run_time_error(util::fmt("vector operands are of different sizes (%d vs. %d)", int(n), int(vec3.size()))); + ZAM_run_time_error(z.loc, + util::fmt("vector operands are of different sizes (%d vs. %d)", int(n), int(vec3.size()))); return; }