Chandler Carruth
2603a18769
Fix a crash in SROA. This was reported independently by Takumi and
...
David (I think), but I would appreciate folks verifying that this fixes
the big crasher.
I'm still working on a reduced test case, but because this was causing
problems I wanted to get the fix checked in quickly.
llvm-svn: 164585
2012-09-25 02:42:03 +00:00
Greg Clayton
97d5cf05eb
<rdar://problem/9959501>
...
More KDP debugging process. We can not set breakpoints, hit them, resume, step and detach while running.
llvm-svn: 164584
2012-09-25 02:40:06 +00:00
Nick Lewycky
42bca056e0
Don't forget that strcpy and friends return a pointer to the destination, so
...
it's not a dead store if that pointer is used. Whoops!
llvm-svn: 164583
2012-09-25 01:55:59 +00:00
Michael Ilseman
02a6babb3e
Unit tests for IntegerDivision. Currently, just a basic sanity check to ensure that the code was generated properly. Future work would be finding some way to test the actual result that would be computed.
...
llvm-svn: 164582
2012-09-25 01:33:33 +00:00
Eli Friedman
cda3db801f
Delete some code which is, as far as I can tell, dead.
...
llvm-svn: 164580
2012-09-25 01:02:42 +00:00
Anna Zaks
4396c54c14
[analyzer] Fix a buildbot crash triggered by turning on dynamic
...
dispatch.
llvm-svn: 164579
2012-09-25 00:31:43 +00:00
Richard Smith
60f2e1efb8
Don't produce diagnostics for missing ctor-initializers during template
...
instantiations if we encountered errors parsing some of the initializers.
llvm-svn: 164578
2012-09-25 00:23:05 +00:00
Jim Grosbach
e974a6afaf
ARM: 'add Rd, pc, #imm' is an alias for 'adr Rd, #imm'.
...
rdar://9795790
llvm-svn: 164577
2012-09-25 00:08:13 +00:00
Nick Lewycky
627d217727
Remove unused name of variable to quiet a warning. Also canonicalize a
...
declaration to use the same form as in the rest of the file. No functionality
change.
llvm-svn: 164576
2012-09-24 23:47:23 +00:00
Howard Hinnant
8e747d3671
Apply the emulated nullptr_t with constexpr. This is an unusual configuration that would take advantage of this. But it has popped up in the wild and does no harm to support it.
...
llvm-svn: 164575
2012-09-24 23:36:40 +00:00
Enrico Granata
64e15fc956
Making sure we do not try to compare a NULL string - which would cause us to crash
...
llvm-svn: 164574
2012-09-24 23:30:10 +00:00
Sean Callanan
771f1de241
Added a new Xcode build configuration, DebugClang,
...
which builds a Debug+Asserts build of Clang and
links LLDB against it. The Debug configuration
builds Clang with Release+Asserts, for faster
linking and smaller memory footprint when debugging
the build LLDB.
llvm-svn: 164573
2012-09-24 23:21:18 +00:00
Sean Callanan
c2bd8c2158
Removed some debugging cruft.
...
llvm-svn: 164572
2012-09-24 23:11:56 +00:00
Jim Grosbach
361ca34270
Mark jump tables in code sections with DataRegion directives.
...
Even out-of-line jump tables can be in the code section, so mark them
as data-regions for those targets which support the directives.
rdar://12362871&12362974
llvm-svn: 164571
2012-09-24 23:06:27 +00:00
Chad Rosier
116f03df2e
Typo.
...
llvm-svn: 164570
2012-09-24 23:04:25 +00:00
Eli Friedman
bdd5753bda
Handle C++ functional casts in a similar way to C-style casts in
...
unused expression warnings. <rdar://problem/12359208>.
llvm-svn: 164569
2012-09-24 23:02:26 +00:00
Chad Rosier
93b3eb7793
Update for r164567.
...
llvm-svn: 164568
2012-09-24 22:58:50 +00:00
Chad Rosier
c4734c8950
Rather then have a wrapper function, have tblgen instantiate the implementation.
...
Also remove an unused argument.
llvm-svn: 164567
2012-09-24 22:57:55 +00:00
Fariborz Jahanian
61740f6649
objective-C: use 'instance variables' as plural when referring
...
to the feature.
llvm-svn: 164566
2012-09-24 22:51:51 +00:00
Bob Wilson
4b87768886
Clear UNIVERSAL_SDK_PATH setting when building host tools. <rdar://12360497>
...
I also moved the SDKROOT setting into the make flags, since clearing it from
the environment isn't good enough to override a setting on the make command
line. That hasn't been a problem but it could be, and it's good to be
consistent with the way UNIVERSAL_SDK_PATH is handled.
llvm-svn: 164565
2012-09-24 22:51:19 +00:00
Jason Molenda
bdde850228
Fix string comparisons in ABIMacOSX_i386::RegisterIsCalleeSaved so
...
that volatile registers are correctly reported for this ABI.
We were incorrectly passing up volatile registers from callee
frames.
llvm-svn: 164564
2012-09-24 22:51:04 +00:00
Sean Callanan
3d654b3044
Brought LLDB top-of-tree into sync with LLVM/Clang
...
top-of-tree. Removed all local patches and llvm.zip.
The intent is that fron now on top-of-tree will
always build against LLVM/Clang top-of-tree, and
that problems building will be resolved as they
occur. Stable release branches of LLDB can be
constructed as needed and linked to specific release
branches of LLVM/Clang.
llvm-svn: 164563
2012-09-24 22:25:51 +00:00
Nick Lewycky
9f4729d331
Teach DSE that strcpy, strncpy, strcat and strncat are all stores which may be
...
dead.
llvm-svn: 164561
2012-09-24 22:09:10 +00:00
Nick Lewycky
135ac9ac89
Move all the calls to AA.getTargetLibraryInfo() to using a TLI member variable.
...
No functionality change.
llvm-svn: 164560
2012-09-24 22:07:09 +00:00
Fariborz Jahanian
14fd801f8f
objective-C: remove use of 'ivar' in favor of
...
'instance variable' in text of all diagnostics
for objective-C: // rdar://12352442
llvm-svn: 164559
2012-09-24 22:00:36 +00:00
Sean Callanan
32a5ba5b47
Made TestHiddenIvars an expected failure with
...
"frame variable". "expr" finds hidden ivars
correctly.
llvm-svn: 164558
2012-09-24 21:34:40 +00:00
Ted Kremenek
3d0ec38cb4
Add clarifying comment.
...
llvm-svn: 164557
2012-09-24 21:17:14 +00:00
Dmitri Gribenko
2e0e3f37be
More tests for r164545 (change extension warning about 'long long').
...
llvm-svn: 164556
2012-09-24 21:09:05 +00:00
Dmitri Gribenko
b8e9e7507e
StringRef'ize Preprocessor::CreateString().
...
llvm-svn: 164555
2012-09-24 21:07:17 +00:00
Dmitri Gribenko
ae07f72017
Replace raw call to snprintf() by llvm streams.
...
llvm-svn: 164554
2012-09-24 20:56:28 +00:00
Roman Divacky
ca10389bfe
Specify MachinePointerInfo as refering to the argument value and offset of the
...
store when handling byval arguments. Thus preventing reordering of the store
with load with post-RA scheduler.
llvm-svn: 164553
2012-09-24 20:47:19 +00:00
Bob Wilson
317be45091
Replace an assertion with an error for empty __asm statements.
...
llvm-svn: 164551
2012-09-24 19:57:59 +00:00
Bob Wilson
0fc64f0b11
Fix a comment typo and clean up formatting.
...
llvm-svn: 164550
2012-09-24 19:57:55 +00:00
Douglas Gregor
e769d862ee
Make sure that we don't end up making an #undef'd macro visible after
...
the fact. Test cases will come when we're actually (de-)serializing
macro history.
llvm-svn: 164549
2012-09-24 19:56:18 +00:00
Chad Rosier
3cb355d11f
Rather then have a wrapper function, have tblgen instantiate the implementation.
...
llvm-svn: 164548
2012-09-24 19:32:29 +00:00
Argyrios Kyrtzidis
5eae073cb1
[libclang] Bring CXCursor_AsmStmt back as an alias for CXCursor_GCCAsmStmt.
...
This was renamed in r162632 which was badness because the C API needs to be stable.
rdar://12360096
llvm-svn: 164547
2012-09-24 19:27:20 +00:00
Dmitri Gribenko
61b4b7f0f3
Include 'long long' extension warning in the LongLong group so that it can be
...
silenced by -Wno-long-long. Thanks Richard Smith for the fix idea!
llvm-svn: 164546
2012-09-24 19:05:10 +00:00
Dmitri Gribenko
1cd2305703
Change the wording of the extension warning from
...
> 'long long' is an extension when C99 mode is not enabled
to
> 'long long' is a C++11 extension
while compiling in C++98 mode.
llvm-svn: 164545
2012-09-24 18:19:21 +00:00
Jim Ingham
43de0f95ed
Remove a couple of debugging printf's from the testsuite.
...
llvm-svn: 164544
2012-09-24 18:11:54 +00:00
Anna Zaks
b9828203df
[analyzer] Really turn on dynamic-bifurcation on by default.
...
Thanks to Byoungyoung for realizing taht we are not passing the default
option correctly.
llvm-svn: 164543
2012-09-24 17:43:47 +00:00
Anna Zaks
e20b201dda
[analyzer] Remove unused.
...
llvm-svn: 164542
2012-09-24 17:43:44 +00:00
Anna Zaks
3533a54a97
[analyzer]Prevent infinite recursion(assume->checker:evalAssume->assume)
...
(Unfortunately, I do not have a good reduced test case for this.)
llvm-svn: 164541
2012-09-24 17:43:41 +00:00
Richard Osborne
6fb4bd77e2
Add missing : in CHECK line.
...
llvm-svn: 164540
2012-09-24 17:22:43 +00:00
Richard Osborne
2fd29bfb90
Add missing check for presence of target data.
...
This avoids a crash in visitAllocaInst when target data isn't available.
llvm-svn: 164539
2012-09-24 17:10:03 +00:00
Marshall Clow
8493cad160
Updating email address
...
llvm-svn: 164490
2012-09-24 14:27:24 +00:00
Marshall Clow
b07ddfcac7
Updating email address
...
llvm-svn: 164489
2012-09-24 14:27:10 +00:00
Alexey Samsonov
351d486df0
[TSan] one more attempt to fix sleep_sync test: call sleep in the spawned thread so that sleep-synchronization will be detected even if child thread is started late.
...
llvm-svn: 164488
2012-09-24 13:35:46 +00:00
Alexey Samsonov
313014694f
[TSan] Provide replacements for operators new/delete instead of declaring extern C functions with weirdly mangled names (same strategy is used in ASan).
...
llvm-svn: 164487
2012-09-24 13:19:47 +00:00
Alexey Samsonov
a555b3faf4
[ASan] Apply some ASan-relevant pieces of patch by Ruben Van Boxem. In the same time, remove ASan from CMake build on Windows after conversation with Timur. We don't want to support building ASan on Windows until it is in a working state.
...
llvm-svn: 164486
2012-09-24 11:43:40 +00:00
Alexander Potapenko
34b46ca48e
Use an explicit target to test that source fortification is off when building for Darwin with -faddress-sanitizer.
...
llvm-svn: 164485
2012-09-24 10:25:24 +00:00