From 344c784445ac0b0a4512b4ba8efcd0bc76a31300 Mon Sep 17 00:00:00 2001 From: Jamieson Pryor Date: Wed, 15 Nov 2023 15:55:37 -0800 Subject: [PATCH] Fix sanitizer failures that don't appear for vanilla [a|m|t]san tests. JNI Bind is internally exercised with sanitizers, but somehow CI flagged this retroactively but not under regular testing (presumably flags differ somewhere in a CI config). PiperOrigin-RevId: 582833429 --- implementation/array_view.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/implementation/array_view.h b/implementation/array_view.h index 120bdfab..36591a2a 100644 --- a/implementation/array_view.h +++ b/implementation/array_view.h @@ -26,7 +26,7 @@ namespace jni { template struct ArrayViewHelper { - const T& val_; + const T val_; operator T() const { return val_; } ArrayViewHelper(const T& val) : val_(val) {}