From 0feaa932f68a40fdc37287d2cc69acfa3508f36f Mon Sep 17 00:00:00 2001 From: "1998zhangyi@gmail.com" <1998zhangyi@gmail.com> Date: Tue, 6 Dec 2022 00:37:32 -0800 Subject: [PATCH] [C++20/DR] Fix compile error for equality in rewrite expressions --- lib/Runtime/Language/SimdUtils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Runtime/Language/SimdUtils.h b/lib/Runtime/Language/SimdUtils.h index 420d785b623..e7355427dc9 100644 --- a/lib/Runtime/Language/SimdUtils.h +++ b/lib/Runtime/Language/SimdUtils.h @@ -45,7 +45,7 @@ struct _SIMDValue { f64[SIMD_X] = f64[SIMD_Y] = 0; } - bool operator==(const _SIMDValue& r) + bool operator==(const _SIMDValue& r) const { // don't compare f64/f32 because NaN bit patterns will not be considered equal. return (this->i32[SIMD_X] == r.i32[SIMD_X] &&