Ted Kremenek
c1f014afc8
Sink call to checkUnsafeAssignLiteral() into checkUnsafeAssignObject().
...
llvm-svn: 170919
2012-12-21 19:45:30 +00:00
Chad Rosier
6af2d2e4bb
Fix indent.
...
llvm-svn: 170918
2012-12-21 19:43:33 +00:00
Benjamin Kramer
5521b94b07
Cleanup compiler warnings on discarding type qualifiers in casts. Switch to C++ style casts.
...
Patch by Saleem Abdulrasool!
Differential Revision: http://llvm-reviews.chandlerc.com/D204
llvm-svn: 170917
2012-12-21 19:09:53 +00:00
Jakob Stoklund Olesen
0edb164723
Add a missing assertion, the null register has no register units.
...
llvm-svn: 170916
2012-12-21 18:38:09 +00:00
Jordan Rose
7b5bfc795a
[analyzer] Don't perform an expensive assertion in release builds.
...
Unfortunately, we don't seem to have a standard way to do this. I'm using
the __OPTIMIZE__ GNU extension that Clang also defines, but that doesn't
help MSVC. I suppose we could remove the check entirely, but it's useful
for developing new constraint managers.
llvm-svn: 170915
2012-12-21 18:26:48 +00:00
Nico Weber
8f83ee46ba
format: Handle #import as include directive too.
...
llvm-svn: 170914
2012-12-21 18:21:56 +00:00
Benjamin Kramer
b4688f84bd
try to unbreak ppc buildbots.
...
llvm-svn: 170913
2012-12-21 18:11:45 +00:00
Quentin Colombet
9b14ebc355
Add a testcase for ARM cortex-r5 subtarget
...
llvm-svn: 170912
2012-12-21 18:00:32 +00:00
Benjamin Kramer
d0eb39232c
Teach sort_includes.py to drop duplicated includes.
...
llvm-svn: 170911
2012-12-21 18:00:08 +00:00
Daniel Jasper
050948a5a5
clang-format: No spaces around directory specifiers
...
This fixes PR14683. We used to format like this:
#include <a / b>
And this patch changes this to:
#include <a/b>
llvm-svn: 170910
2012-12-21 17:58:39 +00:00
Quentin Colombet
f5a37a3b71
Add ARM cortex-r5 subtarget as available mcpu
...
llvm-svn: 170909
2012-12-21 17:57:47 +00:00
Benjamin Kramer
82d1c371e2
X86: Match pmin/pmax as a target specific dag combine. This occurs during vectorization.
...
Part of PR14667.
llvm-svn: 170908
2012-12-21 17:46:58 +00:00
Anna Zaks
4127750ed8
[analyzer] Fix typos.
...
llvm-svn: 170907
2012-12-21 17:27:04 +00:00
Anna Zaks
1ee76c1bae
[analyzer] Re-apply r170826 and make the dumping of the GallGraph
...
deterministic.
Commit message for r170826:
[analyzer] Traverse the Call Graph in topological order.
Modify the call graph by removing the parentless nodes. Instead all
nodes are children of root to ensure they are all reachable. Remove the
tracking of nodes that are "top level" or global. This information is
not used and can be obtained from the Decls stored inside
CallGraphNodes.
Instead of existing ordering hacks, analyze the functions in topological
order over the Call Graph.
Together with the addition of devirtualizable ObjC message sends and
blocks to the call graph, this gives around 6% performance improvement
on several large ObjC benchmarks.
llvm-svn: 170906
2012-12-21 17:27:01 +00:00
Roman Divacky
a6795968e6
Sort the includes according to the coding standard.
...
llvm-svn: 170905
2012-12-21 17:23:52 +00:00
Fariborz Jahanian
3b1604e485
Fix typo.
...
llvm-svn: 170904
2012-12-21 17:14:23 +00:00
Roman Divacky
241f45118b
Remove duplicate includes.
...
llvm-svn: 170903
2012-12-21 17:07:08 +00:00
Roman Divacky
a229186a82
Remove duplicate includes.
...
llvm-svn: 170902
2012-12-21 17:06:44 +00:00
Tom Stellard
a8b0351720
R600: Expand vec4 INT <-> FP conversions
...
llvm-svn: 170901
2012-12-21 16:33:24 +00:00
Kostya Serebryany
fe80f080ee
[asan] asan_allocator2 fix two asserts that happen on full chrome: a) memalign called with 0 size and large alignment and b) malloc called after TSD has been destructed
...
llvm-svn: 170900
2012-12-21 14:54:46 +00:00
Daniel Jasper
fbde69e266
Basic support for formatting for-loops.
...
We used to not really format them. Now we do:
for (MachineBasicBlock::succ_iterator SI = BB->succ_begin(),
SE = BB->succ_end();
SI != SE; ++SI) {
This is just one example and I am sure we still mess some of them up, but it
is a step forward.
llvm-svn: 170899
2012-12-21 14:37:20 +00:00
Benjamin Kramer
4669d18893
X86: Match the SSE/AVX min/max vector ops using a custom node instead of intrinsics
...
This is very mechanical, no functionality change. Preparation for PR14667.
llvm-svn: 170898
2012-12-21 14:04:55 +00:00
Alexey Samsonov
e30a84f08f
[Sanitizer] CMake build rules for unittests: depend on headers when compiling a file with custom clang.
...
llvm-svn: 170897
2012-12-21 14:04:52 +00:00
Dmitry Vyukov
b3bf5651bd
tsan: add java malloc stress test
...
llvm-svn: 170896
2012-12-21 13:40:27 +00:00
Kostya Serebryany
a1e29adab5
[sanitizer] mmap less on every size class to make the allocator more friendly to small programs
...
llvm-svn: 170895
2012-12-21 13:38:05 +00:00
Dmitry Vyukov
c23b218520
tsan: add java rwlock test
...
llvm-svn: 170894
2012-12-21 13:31:07 +00:00
Dmitry Vyukov
c55ed2f538
tsan: add a test for java memory move
...
llvm-svn: 170893
2012-12-21 13:28:39 +00:00
Dmitry Vyukov
e6b51986bb
tsan: move common part of java tests into a separate header
...
llvm-svn: 170892
2012-12-21 13:26:10 +00:00
Dmitry Vyukov
a33bf2701e
tsan: fix Java memory move operations and add the test
...
llvm-svn: 170891
2012-12-21 13:23:48 +00:00
Rafael Espindola
92e37d31e7
Update comments.
...
llvm-svn: 170890
2012-12-21 13:22:55 +00:00
Dmitry Vyukov
fe817bdb88
tsan: less debug output
...
llvm-svn: 170889
2012-12-21 12:30:52 +00:00
Kostya Serebryany
3cc719fdf9
[asan] asan_allocator2: better memory stats
...
llvm-svn: 170888
2012-12-21 12:26:31 +00:00
Daniel Jasper
0ca819410d
Temporary fix of tests to make buildbots happy.
...
Permanent solution coming up after checking back with Fariborz/Douglas.
llvm-svn: 170887
2012-12-21 12:10:20 +00:00
Duncan Sands
0ac8473db0
Test that a landingpad gets the name provided when it was created (see commit
...
170318).
llvm-svn: 170886
2012-12-21 12:03:03 +00:00
Dmitry Vyukov
58e617121d
tsan: update mutex lock table for java
...
llvm-svn: 170885
2012-12-21 11:30:41 +00:00
Dmitry Vyukov
22be55e47e
tsan: update mutex table for java
...
llvm-svn: 170884
2012-12-21 11:30:14 +00:00
Evgeniy Stepanov
4fbc0d08bf
[msan] Remove unreachable blocks before instrumenting a function.
...
llvm-svn: 170883
2012-12-21 11:18:49 +00:00
Dmitry Vyukov
a5b57100d4
tsan: java: move shadow memory on GC compaction
...
llvm-svn: 170882
2012-12-21 11:16:40 +00:00
Dmitry Vyukov
bed53cfc12
tsan: add a high-level comment to tsan_interface_java.h
...
llvm-svn: 170881
2012-12-21 10:57:59 +00:00
Evgeniy Stepanov
acef0e66a6
Slight rewording of -fsanitize=memory docs.
...
llvm-svn: 170880
2012-12-21 10:53:20 +00:00
Evgeniy Stepanov
17d5590003
User manual chapter on MemorySanitizer.
...
llvm-svn: 170879
2012-12-21 10:50:00 +00:00
Alexander Potapenko
47a03a2ebe
[ASan] Fix another FileCheck pattern to be c++filt-proof.
...
llvm-svn: 170878
2012-12-21 10:48:30 +00:00
Dmitry Vyukov
11bb06039a
tsan: fix lint warnings
...
llvm-svn: 170877
2012-12-21 10:47:48 +00:00
Dmitry Vyukov
1859251df8
tsan: disable checks for limited address space and unlimited stack for Go
...
llvm-svn: 170876
2012-12-21 10:45:01 +00:00
Daniel Jasper
ab7654e894
Use OperatorPrecedence.h in clang-format
...
No indented functional changes other than handling more operators
correctly.
llvm-svn: 170875
2012-12-21 10:20:02 +00:00
Daniel Jasper
8dd404737b
Formatting fixes for PR14680
...
Also, some (automated) formatting fixes and slight cleanups.
llvm-svn: 170873
2012-12-21 09:41:31 +00:00
Alexey Samsonov
53a965e125
[Sanitizer] Don't implicitly add object files to the list of dependencies when building compiler_rt unittests. Fix sanitizer_common and asan build rules accordingly. This also fixes check-sanitizer command on Ninja.
...
llvm-svn: 170870
2012-12-21 08:56:14 +00:00
Kostya Serebryany
3674c6b13b
[asan] add a flag alloc_dealloc_mismatch (off by default for now) which finds malloc/delete, new/free, new/delete[], etc mismatches
...
llvm-svn: 170869
2012-12-21 08:53:59 +00:00
Dmitry Vyukov
42de108861
Remove the working that ThreadSanitizer is *experimental*.
...
llvm-svn: 170868
2012-12-21 08:21:25 +00:00
Richard Smith
38a549bc42
Fix regression in r170489: when instantiating a direct initializer which is a
...
CXXScalarValueInitExpr (or an ImplicitValueInitExpr), strip it back down to an
empty pair of parentheses so that the initialization code can tell that we're
performing value-initialization.
llvm-svn: 170867
2012-12-21 08:13:35 +00:00