Skip to content

Commit 99cfdb2

Browse files
committed
return float by value
1 parent d39638d commit 99cfdb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/include/clang/Basic/Sanitizers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ class SanitizerMaskCutoffs {
158158
std::array<float, SanitizerKind::SO_Count> cutoffs = {0};
159159

160160
public:
161-
const float &operator[](int index) const { return cutoffs[index]; }
161+
float operator[](int index) const { return cutoffs[index]; }
162162

163163
void set(SanitizerMask K, float V);
164164
void clear(SanitizerMask K = SanitizerKind::All);

0 commit comments

Comments
 (0)