From 0706a53a1b02a70ac3ab163a29c5a3ab5b4f18e8 Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 30 May 2023 22:40:45 -0700 Subject: [PATCH] [NFC][sanitizer] Change ArrayRef constructor --- compiler-rt/lib/sanitizer_common/sanitizer_common.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_common.h b/compiler-rt/lib/sanitizer_common/sanitizer_common.h index d43e066..358878e 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_common.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_common.h @@ -1086,7 +1086,7 @@ class ArrayRef { ArrayRef(T *begin, T *end) : begin_(begin), end_(end) {} template - ArrayRef(const C &src) : begin_(src.begin()), end_(src.end()) {} + ArrayRef(const C &src) : begin_(src.data()), end_(src.data() + src.size()) {} const T *begin() const { return begin_; } const T *end() const { return end_; } -- 2.7.4