From 44781f1b0ccf7f8017d45e95024ac7d9b25c3732 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Fri, 5 May 2017 18:46:14 +0000 Subject: [PATCH] CFI: Add a blacklist entry for std::_Sp_counted_ptr_inplace::_Sp_counted_ptr_inplace(). This ctor is used by std::make_shared and needs to cast to uninitialized T* in order to call std::allocator_traits::construct. llvm-svn: 302272 --- compiler-rt/lib/cfi/cfi_blacklist.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/compiler-rt/lib/cfi/cfi_blacklist.txt b/compiler-rt/lib/cfi/cfi_blacklist.txt index 1f0eeb35..cc111be 100644 --- a/compiler-rt/lib/cfi/cfi_blacklist.txt +++ b/compiler-rt/lib/cfi/cfi_blacklist.txt @@ -24,3 +24,8 @@ fun:_ZNSt3__19addressof* # Windows C++ stdlib headers that contain bad unrelated casts. src:*xmemory0 src:*xstddef + +# std::_Sp_counted_ptr_inplace::_Sp_counted_ptr_inplace() (libstdc++). +# This ctor is used by std::make_shared and needs to cast to uninitialized T* +# in order to call std::allocator_traits::construct. +fun:_ZNSt23_Sp_counted_ptr_inplace* -- 2.7.4