1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00
llvm-mirror/unittests
George Burgess IV 6a02f0bf77 Don't consider allocsize functions to be allocation functions.
This patch fixes some ASAN unittest failures on FreeBSD. See the
cfe-commits email thread for r290169 for more on those.

According to the LangRef, the allocsize attribute only tells us about
the number of bytes that exist at the memory location pointed to by the
return value of a function. It does not necessarily mean that the
function will only ever allocate. So, we need to be very careful about
treating functions with allocsize as general allocation functions. This
patch makes us fully conservative in this regard, though I suspect that
we have room to be a bit more aggressive if we want.

This has a FIXME that can be fixed by a relatively straightforward
refactor; I just wanted to keep this patch minimal. If this sticks, I'll
come back and fix it in a few days.

llvm-svn: 290397
2016-12-23 01:18:09 +00:00
..
ADT Fix compilation. 2016-12-17 01:31:46 +00:00
Analysis Don't consider allocsize functions to be allocation functions. 2016-12-23 01:18:09 +00:00
AsmParser
Bitcode Bitcode: Change module reader functions to return an llvm::Expected. 2016-11-13 07:00:17 +00:00
CodeGen GlobalISel: rename legalizer components to match others. 2016-10-14 22:18:18 +00:00
DebugInfo Add the ability for DWARFDie objects to get the parent DWARFDie. 2016-12-21 21:37:06 +00:00
ExecutionEngine [Orc][RPC] Actually specialize SerializationTraits and RPCTypeName in the right 2016-12-21 02:08:23 +00:00
IR [IR] Remove the DIExpression field from DIGlobalVariable. 2016-12-20 02:09:43 +00:00
LineEditor
Linker
MC Fix static initialization order fiasco in MCTests 2016-11-11 22:18:42 +00:00
MI
Object Fix llvm-symbolizer to correctly sort a symbol array and calculate symbol sizes 2016-11-15 21:07:03 +00:00
ObjectYAML
Option
ProfileData Fix spelling mistakes in Tools/Tests comments. NFC. 2016-11-20 13:31:13 +00:00
Support Move GlobPattern class from LLD to llvm/Support. 2016-12-20 23:09:09 +00:00
Target Remove a FIXME that I forgot about. NFC. 2016-10-13 05:28:55 +00:00
Transforms Revert @llvm.assume with operator bundles (r289755-r289757) 2016-12-19 08:22:17 +00:00
CMakeLists.txt Fix llvm-symbolizer to correctly sort a symbol array and calculate symbol sizes 2016-11-15 21:07:03 +00:00