[compiler-rt] r310109 - CFI: Move STL allocator blacklist to clang

Vlad Tsyrklevich via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 4 13:04:01 PDT 2017


Author: vlad.tsyrklevich
Date: Fri Aug  4 13:04:01 2017
New Revision: 310109

URL: http://llvm.org/viewvc/llvm-project?rev=310109&view=rev
Log:
CFI: Move STL allocator blacklist to clang

Summary:
The regular expression to match STL allocators can't easily account for
C++ mangling compression and fails to match some valid instances of STL
allocators. Perform this logic in clang instead.

Motivated by crbug.com/751385.

Reviewers: pcc, kcc, llvm-commits

Reviewed By: pcc

Differential Revision: https://reviews.llvm.org/D36291

Modified:
    compiler-rt/trunk/lib/cfi/cfi_blacklist.txt

Modified: compiler-rt/trunk/lib/cfi/cfi_blacklist.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/cfi/cfi_blacklist.txt?rev=310109&r1=310108&r2=310109&view=diff
==============================================================================
--- compiler-rt/trunk/lib/cfi/cfi_blacklist.txt (original)
+++ compiler-rt/trunk/lib/cfi/cfi_blacklist.txt Fri Aug  4 13:04:01 2017
@@ -1,9 +1,3 @@
-# STL allocators (T *allocator<T *>::allocate(size_type, const void*)).
-# The type signature mandates a cast from uninitialized void* to T*.
-# size_type can either be unsigned int (j) or unsigned long (m).
-fun:*8allocateEjPKv
-fun:*8allocateEmPKv
-
 # std::get_temporary_buffer, likewise (libstdc++, libc++).
 fun:_ZSt20get_temporary_buffer*
 fun:_ZNSt3__120get_temporary_buffer*




More information about the llvm-commits mailing list