[PATCH] D42150: cfi: Add a blacklist entry for MSVC's std::get_temporary_buffer function.

Peter Collingbourne via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 16:59:59 PST 2018


pcc created this revision.
pcc added reviewers: vlad.tsyrklevich, eugenis.

https://reviews.llvm.org/D42150

Files:
  compiler-rt/lib/cfi/cfi_blacklist.txt


Index: compiler-rt/lib/cfi/cfi_blacklist.txt
===================================================================
--- compiler-rt/lib/cfi/cfi_blacklist.txt
+++ compiler-rt/lib/cfi/cfi_blacklist.txt
@@ -1,7 +1,9 @@
 [cfi-unrelated-cast]
-# std::get_temporary_buffer, likewise (libstdc++, libc++).
+# The specification of std::get_temporary_buffer mandates a cast to
+# uninitialized T* (libstdc++, libc++, MSVC stdlib).
 fun:_ZSt20get_temporary_buffer*
 fun:_ZNSt3__120get_temporary_buffer*
+fun:*get_temporary_buffer at .*@std@@*
 
 # STL address-of magic (libstdc++, libc++).
 fun:*__addressof*


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D42150.130069.patch
Type: text/x-patch
Size: 592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180117/1d875925/attachment.bin>


More information about the llvm-commits mailing list