Skip to content

Commit 900eeac

Browse files
ASan: Remove noexcept from __sanitizer_annotate_contiguous_container (#4150)
1 parent f392449 commit 900eeac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

stl/inc/__msvc_sanitizer_annotate_container.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,9 @@ extern const bool _Asan_string_should_annotate;
129129

130130
#if defined(_INSERT_VECTOR_ANNOTATION) || defined(_INSERT_STRING_ANNOTATION)
131131
extern "C" {
132+
// This must match ASan's primary declaration, which isn't marked `noexcept`.
132133
void __cdecl __sanitizer_annotate_contiguous_container(
133-
const void* _First, const void* _End, const void* _Old_last, const void* _New_last) noexcept;
134+
const void* _First, const void* _End, const void* _Old_last, const void* _New_last);
134135
}
135136

136137
#ifdef _M_ARM64EC

0 commit comments

Comments
 (0)