1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-25 05:52:53 +02:00
llvm-mirror/lib
Chandler Carruth 7c144b9cc8 [UB] Don't allocate space for contained types and then try to copy the
contained types into the space when we have no contained types. This
fixes the UB stemming from a call to memcpy with a null pointer. This
also reduces the calls to allocate because this actually happens in
a notable client - Clang.

Found by UBSan.

llvm-svn: 243944
2015-08-04 03:48:26 +00:00
..
Analysis [LAA] Remove unused needsAnyChecking(), NFC 2015-08-03 23:33:03 +00:00
AsmParser Fix with a bit more care. (but only a bit) 2015-08-03 20:55:00 +00:00
Bitcode DI: Disallow uniquable DICompileUnits 2015-08-03 17:26:41 +00:00
CodeGen [CodeGen] Fix FCOPYSIGN legalization to account for mismatched types. 2015-08-04 00:32:55 +00:00
DebugInfo [dwarfdump] Ignore scattered relocations for mach-o. 2015-07-31 20:22:50 +00:00
ExecutionEngine -Wdeprecated-clean: Fix cases of violating the rule of 5 in ways that are deprecated in C++11 2015-08-03 22:30:24 +00:00
Fuzzer [libFuzzer] more refactoring of the Mutator and adding tests to it 2015-08-01 02:23:06 +00:00
IR [UB] Don't allocate space for contained types and then try to copy the 2015-08-04 03:48:26 +00:00
IRReader
LibDriver Add support for producing thin archives in llvm-lib. 2015-07-17 16:01:11 +00:00
LineEditor
Linker Linker: Move distinct MDNodes instead of cloning 2015-08-03 17:09:38 +00:00
LTO Remove access to the DataLayout in the TargetMachine 2015-07-24 16:04:22 +00:00
MC Use range-based for loops. NFC 2015-08-02 22:34:02 +00:00
Object Use early return NFC. 2015-08-03 00:10:33 +00:00
Option Add an ArgList::AddAllArgs that accepts a vector of OptSpecifier. 2015-07-29 17:34:41 +00:00
Passes
ProfileData
Support [UB] Fix yet another use of memcpy with a null pointer argument. I think 2015-08-04 01:00:56 +00:00
TableGen TableGen: Support folding casts from bits to int 2015-07-31 01:12:06 +00:00
Target [AArch64] Rename FP formats to be more consistent. NFC. 2015-08-04 01:38:08 +00:00
Transforms Revert "[LSR] Generate and use zero extends" 2015-08-04 01:52:05 +00:00
CMakeLists.txt
LLVMBuild.txt
Makefile