summaryrefslogtreecommitdiff
path: root/src/search.c
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2020-08-01 17:12:30 +0200
committerPhilipp Stephani <phst@google.com>2020-08-01 17:12:30 +0200
commit06310cf9122500faa96ad200888cfbb1dda56563 (patch)
treeeb7065cdedd8deef2cb55130bf8ff7de305112a9 /src/search.c
parenta2323c7ccb0eab1b6395d5d1d7e18db617354e13 (diff)
downloademacs-06310cf9122500faa96ad200888cfbb1dda56563.tar.gz
emacs-06310cf9122500faa96ad200888cfbb1dda56563.tar.bz2
emacs-06310cf9122500faa96ad200888cfbb1dda56563.zip
Use a more precise check for '__lsan_ignore_object'
* configure.ac: Add check for __lsan_ignore_object. * src/buffer.c (enlarge_buffer_text): * src/data.c (make_blv): * src/emacs-module.c (Fmodule_load, initialize_environment): * src/regex-emacs.c (regex_compile): * src/search.c (newline_cache_on_off): Use new configuration macro.
Diffstat (limited to 'src/search.c')
-rw-r--r--src/search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search.c b/src/search.c
index ad5d0302932..7b74ff91480 100644
--- a/src/search.c
+++ b/src/search.c
@@ -619,7 +619,7 @@ newline_cache_on_off (struct buffer *buf)
if (base_buf->newline_cache == 0)
{
base_buf->newline_cache = new_region_cache ();
-#ifdef HAVE_SANITIZER_LSAN_INTERFACE_H
+#ifdef HAVE___LSAN_IGNORE_OBJECT
__lsan_ignore_object (base_buf->newline_cache);
#endif
}