Ted Kremenek
1dd7fd7106
Minor refactor within ExplodedGraph::reclaimRecentlyAllocatedNodes(). No functionality change.
...
llvm-svn: 149320
2012-01-31 01:20:02 +00:00
Ted Kremenek
f8c36e005a
Convert checker over to using ProgramStateRef.
...
llvm-svn: 149319
2012-01-31 01:19:57 +00:00
Bill Wendling
7778e6d818
Remove more dead functions.
...
llvm-svn: 149318
2012-01-31 01:18:21 +00:00
Bill Wendling
803d6b1b0c
s/getInnerUnwindDestNewEH/getInnerUnwindDest/g
...
llvm-svn: 149317
2012-01-31 01:15:59 +00:00
Bill Wendling
621699de22
Remove some unused, old-EH methods.
...
llvm-svn: 149316
2012-01-31 01:14:49 +00:00
Eli Friedman
18a4c31525
Use the correct ShiftAmtTy for creating shifts after legalization. PR11881. Not committing a testcase because I think it will be too fragile.
...
llvm-svn: 149315
2012-01-31 01:08:03 +00:00
Bill Wendling
518a205d0a
Get rid of references to dead intrinsics.
...
The eh.selector and eh.resume intrinsics aren't used anymore. Get rid of some
calls to them.
llvm-svn: 149314
2012-01-31 01:05:20 +00:00
Fariborz Jahanian
97795c8872
fix test.
...
llvm-svn: 149313
2012-01-31 01:05:11 +00:00
Bill Wendling
ce0c229234
Formatting cleanups. No functionality change.
...
llvm-svn: 149312
2012-01-31 01:01:16 +00:00
Ted Kremenek
b1ca33fde5
Convert ProgramStateRef to a smart pointer for managing the reference counts of ProgramStates. This leads to a slight memory
...
improvement, and a simplification of the logic for managing ProgramState objects.
llvm-svn: 149311
2012-01-31 00:57:20 +00:00
Ted Kremenek
13a4487f4d
Convert more uses of 'const ProgramState *' to 'ProgramStateRef' (and related cleanups).
...
llvm-svn: 149310
2012-01-31 00:57:15 +00:00
Ted Kremenek
addeca4437
Relax constructor for IntrusiveRefCntPtr to not be explicit.
...
llvm-svn: 149309
2012-01-31 00:57:08 +00:00
Ted Kremenek
b8f570db7c
Use traits for IntrusiveRefCntPtr to determine how to increment/decrement a reference count.
...
llvm-svn: 149308
2012-01-31 00:57:04 +00:00
Bill Wendling
f3cae51490
Remove no-longer-useful dyn_casts and pals.
...
llvm-svn: 149307
2012-01-31 00:56:53 +00:00
Kostya Serebryany
bca91defcb
[asan] new run-time flag: sleep_before_dying (asan Issue #31 )
...
llvm-svn: 149306
2012-01-31 00:52:18 +00:00
Johnny Chen
5d0d607b6b
Add a period.
...
llvm-svn: 149305
2012-01-31 00:48:02 +00:00
Johnny Chen
8f8a2a7774
Add a '-u ENV_VAR_NAME' option to the test driver, whose purpose is to unset the said
...
environment variable before starting the test runner which executes the test cases and
may spawn child processes. An example:
./dotest.py -u MY_ENV1 -u MY_ENV2 -v -p TestWatchLocationWithWatchSet.py
llvm-svn: 149304
2012-01-31 00:38:03 +00:00
Bill Wendling
bd7ed6fe7c
Add a constified getLandingPad() method.
...
llvm-svn: 149303
2012-01-31 00:26:24 +00:00
Kostya Serebryany
9aca3b0d2f
[asan] re-enable the test for ObjC initialization bug
...
llvm-svn: 149302
2012-01-30 23:55:46 +00:00
Nico Weber
2dd5756bf1
Revert r149285, it breaks test/Preprocessor/init.c.
...
llvm-svn: 149301
2012-01-30 23:53:44 +00:00
Kostya Serebryany
22ddcfd2df
[asan] fix the ObjC support (asan Issue #33 )
...
llvm-svn: 149300
2012-01-30 23:50:10 +00:00
Chandler Carruth
2c469ff14a
Chris's constant data sequence refactoring actually enabled printing
...
vectors of all one bits to be printed more cleverly in the AsmPrinter.
Unfortunately, the byte value for all one bits is the same with
-fsigned-char as the error return of '-1'. Force this to be the unsigned
byte value when returning it to avoid this problem, and update the test
case for the shiny new behavior.
Yay for building LLVM and Clang with -funsigned-char.
Chris, please review, and let me know if there is any reason to not
desire this change. It seems good on the surface, and certainly intended
based on the code written.
llvm-svn: 149299
2012-01-30 23:47:44 +00:00
Fariborz Jahanian
c93fa98e4c
test for a v-table dispatch that consumes an
...
argument. twik to support the test case.
// rdar://10444476
llvm-svn: 149298
2012-01-30 23:39:30 +00:00
Johnny Chen
3926837056
Trivial indentation change.
...
llvm-svn: 149297
2012-01-30 23:26:57 +00:00
Kostya Serebryany
39ba3f724f
[asan] fix issue 35: don't let the optimizer to optimize the test code away.
...
llvm-svn: 149296
2012-01-30 23:23:26 +00:00
Johnny Chen
5b3b5f07fe
Fixed a typo in the test case. Updated comment.
...
llvm-svn: 149295
2012-01-30 23:17:07 +00:00
Evan Cheng
4e7992eeba
PR11834: Use macros which are defined on Windows. Patch by Marina Yatsina.
...
llvm-svn: 149294
2012-01-30 23:10:32 +00:00
Dan Gohman
fcbd65d27b
basic-aa does support AliasAnalysis chaining now.
...
llvm-svn: 149293
2012-01-30 23:05:41 +00:00
Johnny Chen
50df1f96dc
Reverted 149277 changeset. It was coded that way for a reason.
...
llvm-svn: 149292
2012-01-30 22:48:10 +00:00
Devang Patel
7cdb2ff6b5
Intel syntax. Adjust special code, used to recognize cmp<comparison code>{ss,sd,ps,pd}, for intel syntax.
...
llvm-svn: 149291
2012-01-30 22:47:12 +00:00
Tobias Grosser
9f75aba51f
Remove leftover constant
...
llvm-svn: 149290
2012-01-30 22:46:22 +00:00
Chad Rosier
6a0baa8f09
Typo.
...
llvm-svn: 149289
2012-01-30 22:44:13 +00:00
Tobias Grosser
18aa54cbae
Scheduling: Limiting the constant term is not necessary any more
...
Due to our gist simplifications, limiting the constant term does not seem to
be necessary any more.
Pointed out by Sven Verdoolaege
llvm-svn: 149288
2012-01-30 22:44:05 +00:00
Tobias Grosser
a4ea90b88c
Typo: Maxize -> Mazimize
...
Found by Sebastian Pop.
llvm-svn: 149287
2012-01-30 22:43:56 +00:00
Richard Smith
911e142f03
constexpr: disallow signed integer overflow in integral conversions in constant
...
expressions in C++11.
llvm-svn: 149286
2012-01-30 22:27:01 +00:00
Nico Weber
aa11e6e28c
Fix "long double" and __SIZE_TYPE__ on powerpc.
...
Fixes PR11867. Patch from Jeremy Huddleston!
llvm-svn: 149285
2012-01-30 22:25:29 +00:00
Douglas Gregor
56435b49e0
Remove tgmath.h from the module map for now, because it currently causes a
...
cyclic module dependency due to its inclusion of math.h and
complex.h. I'll take another shot at it later.
llvm-svn: 149283
2012-01-30 22:22:39 +00:00
Kostya Serebryany
fed83c5755
[asan] ifdef/include cleanup
...
llvm-svn: 149281
2012-01-30 22:11:04 +00:00
Johnny Chen
dedb67ab9b
Add "watch set" command as a more general interface in conjunction with "frame var -w".
...
Also add test cases for watching a variable as well as a location expressed as an expression.
o TestMyFirstWatchpoint.py:
Modified to test "watchpoint set -w write global".
o TestWatchLocationWithWatchSet.py:
Added to test "watchpoint set -w write -x 1 g_char_ptr + 7" where a contrived example program
with several threads is supposed to only access the array index within the range [0..6], but
there's some misbehaving thread writing past the range.
rdar://problem/10701761
llvm-svn: 149280
2012-01-30 21:46:17 +00:00
Fariborz Jahanian
f2bda69cd2
objc-arc: Perform null check on receiver before sending methods which
...
consume one or more of their arguments. If not done, this will cause a leak
as method will not consume the argument when receiver is null.
In this patch, the null path releases consumed argument.
// rdar://10444474
llvm-svn: 149279
2012-01-30 21:40:37 +00:00
Kostya Serebryany
cf2c65aa8e
[asan] add a test for __attribute__ no_address_safety_analysis
...
llvm-svn: 149278
2012-01-30 21:34:59 +00:00
Johnny Chen
a5822c0501
Make BreakpointLocation::IsEnabled() consistent with the BreakpointLocation::SetEnabled() implementation.
...
llvm-svn: 149277
2012-01-30 21:16:22 +00:00
Anna Zaks
58cc6cabe5
[analyzer] Rename the checker as per Ted's comment. Remove the reference
...
from the driver.
llvm-svn: 149276
2012-01-30 21:14:16 +00:00
Chad Rosier
41003f819c
Typo.
...
llvm-svn: 149275
2012-01-30 21:13:22 +00:00
Kostya Serebryany
510850c345
[asan] minor ifdef cleanup
...
llvm-svn: 149274
2012-01-30 20:55:02 +00:00
David Greene
6291f3a43c
Implement String Cast from Integer
...
Allow casts from integer to string.
llvm-svn: 149273
2012-01-30 20:47:04 +00:00
Howard Hinnant
c9204f6bed
Refactored personality function. Found one bug in scanning exception spec lists.
...
llvm-svn: 149272
2012-01-30 20:16:21 +00:00
Howard Hinnant
2c50972c32
Removed debugging print statements
...
llvm-svn: 149271
2012-01-30 20:13:37 +00:00
Devang Patel
9a9bb5c5db
Intel syntax. Support .intel_syntax directive.
...
llvm-svn: 149270
2012-01-30 20:02:42 +00:00
Benjamin Kramer
396c590818
Fix refacto.
...
llvm-svn: 149269
2012-01-30 20:01:35 +00:00