Lang Hames
1997de0100
Fixed macro condition.
...
llvm-svn: 148408
2012-01-18 19:48:31 +00:00
Fariborz Jahanian
28324b0066
objc: deprecate direct usage of 'isa' of objc objects
...
in favor of usage of api's intended for.
// rdar://8290002
llvm-svn: 148404
2012-01-18 19:08:56 +00:00
Johnny Chen
41b780d704
Add a test case where 'settings set frame-format' supplies a format string containing, among other things, a single backtick character.
...
rdar://problem/10712130
llvm-svn: 148403
2012-01-18 19:07:08 +00:00
Jim Grosbach
e2d298168c
Tidy up. 80 columns.
...
llvm-svn: 148401
2012-01-18 18:52:20 +00:00
Jim Grosbach
aba3de99c0
Tidy up. MCAsmBackend naming conventions.
...
llvm-svn: 148400
2012-01-18 18:52:16 +00:00
Howard Hinnant
f53bbd2a1e
Added installheaders target.
...
llvm-svn: 148399
2012-01-18 17:44:31 +00:00
Howard Hinnant
0fd9a6cc37
Remove installhdrs target from Makefile
...
llvm-svn: 148396
2012-01-18 16:07:25 +00:00
Alexey Samsonov
0ac73fc9f8
AddressSanitizer: return false instead of true for __asan_get_ownership(NULL)
...
llvm-svn: 148394
2012-01-18 15:26:55 +00:00
Douglas Gregor
226173ae93
In the driver, -fmodules enables modules for C/Objective-C but one
...
also needs -fcxx-modules to enable modules for C++/Objective-C++.
llvm-svn: 148393
2012-01-18 15:19:58 +00:00
Seth Cantrell
6255c257e9
Add and update tests for character literals
...
llvm-svn: 148392
2012-01-18 12:27:10 +00:00
Seth Cantrell
9c2d6f0279
stop claiming unicode escape sequences are too long in strings, because they never are
...
llvm-svn: 148391
2012-01-18 12:27:08 +00:00
Seth Cantrell
02f8605974
Fix char literal types in C
...
L'x' is actually wchar_t
support C11 u and U char literals
llvm-svn: 148390
2012-01-18 12:27:06 +00:00
Seth Cantrell
8b2b677f39
Improves support for Unicode in character literals
...
Updates ProcessUCNExcape() for C++. C++11 allows UCNs in character
and string literals that represent control characters and basic
source characters. Also C++03 allows UCNs that refer to surrogate
codepoints.
UTF-8 sequences in character literals are now handled as single
c-chars.
Added error for multiple characters in Unicode character literals.
Added errors for when a the execution charset encoding of a c-char
cannot be represented as a single code unit in the associated
character type. Note that for the purposes of this error the asso-
ciated character type for a narrow character literal is char, not
int, even though in C narrow character literals have type int.
llvm-svn: 148389
2012-01-18 12:27:04 +00:00
Seth Cantrell
c9196651fc
test svn commit access
...
llvm-svn: 148388
2012-01-18 12:11:32 +00:00
Alexander Potapenko
44b683ea0f
Follow-up for r148386: deleted compiler-rt/lib/asan/sysinfo
...
llvm-svn: 148387
2012-01-18 11:56:00 +00:00
Alexander Potapenko
38da9a04f5
Delete sysinfo/* and all references to it.
...
llvm-svn: 148386
2012-01-18 11:42:30 +00:00
Alexander Potapenko
4257386879
Implement AsanProcMaps for Mac OS. The code from sysinfo/ is not needed anymore and should be cleaned up.
...
llvm-svn: 148385
2012-01-18 11:16:05 +00:00
Bill Wendling
75afc7afe8
Remove dead code.
...
llvm-svn: 148384
2012-01-18 10:10:28 +00:00
Nadav Rotem
3b8f0cc9fa
Fix a bug in the type-legalization of vector integers. When we bitcast one vector type to another, we must not bitcast the result if one type is widened while the other is promoted.
...
llvm-svn: 148383
2012-01-18 08:33:18 +00:00
Kaelyn Uhrain
79d01c1760
Convert DiagnoseEmptyLookup to use correction callbacks.
...
No new unit tests yet as there is no behavioral change
(except for slightly more specific filtering in
Sema::ActOnStartOfLambdaDefinition). Tests will be added
as the code paths are traced in greater depth to determine
how to improve the results--there are at least one or two
known bugs that require those improvements. This commit
lays the groundwork for those changes.
llvm-svn: 148382
2012-01-18 05:58:54 +00:00
Richard Smith
66e05fe630
Move narrowing conversion detection code from SemaInit to SemaOverload, ready
...
for it to be used in converted constant expression checking, and fix a couple
of issues:
- Conversion operators implicitly invoked prior to the narrowing conversion
were not being correctly handled when determining whether a constant value
was narrowed.
- For conversions from floating-point to integral types, the diagnostic text
incorrectly always claimed that the source expression was not a constant
expression.
llvm-svn: 148381
2012-01-18 05:21:49 +00:00
Jason Molenda
9351402fa4
Bump version number past lldb-107.
...
llvm-svn: 148380
2012-01-18 05:19:15 +00:00
Johnny Chen
bc774c1156
Add a '-X excluded-dir' option to the test driver to exclude a directory from consideration during test discovery. For example:
...
./dotest.py -X types -v
from the test dir will ignore test cases under test/types.
llvm-svn: 148379
2012-01-18 05:15:00 +00:00
Nick Lewycky
e2367d2508
Add testcase for r148375!
...
llvm-svn: 148378
2012-01-18 04:28:31 +00:00
Pete Cooper
c52eeed310
Fix ISD::REG_SEQUENCE to accept physical registers and change TwoAddressInstructionPass to insert copies for any physical reg operands of the REG_SEQUENCE
...
llvm-svn: 148377
2012-01-18 04:16:16 +00:00
Eli Friedman
7bda7f7533
Make PotentiallyPotentiallyEvaluated contexts work correctly when referencing a class field from outside an instance method.
...
llvm-svn: 148376
2012-01-18 03:53:45 +00:00
Nick Lewycky
9ed5b156a2
Fix a string over-run detected by ASAN.
...
llvm-svn: 148375
2012-01-18 03:41:19 +00:00
Richard Smith
9cf080fba3
A call to strlen is not a constant expression, even if we're treating it as a
...
builtin.
llvm-svn: 148374
2012-01-18 03:06:12 +00:00
Eli Friedman
1f4f9ddee8
The value of a case statement is a potentially evaluated context. Found by inspection.
...
llvm-svn: 148373
2012-01-18 02:54:10 +00:00
Anna Zaks
7f6a6b7507
[analyzer] Refactor: prePropagateTaint ->
...
TaintPropagationRule::process().
Also remove the "should be a pointer argument" warning - should be
handled elsewhere.
llvm-svn: 148372
2012-01-18 02:45:13 +00:00
Anna Zaks
560dbe9ac9
[analyzer] Taint: warn when tainted data is used to specify a buffer
...
size (Ex: in malloc, memcpy, strncpy..)
(Maybe some of this could migrate to the CString checker. One issue
with that is that we might want to separate security issues from
regular API misuse.)
llvm-svn: 148371
2012-01-18 02:45:11 +00:00
Anna Zaks
5d324e509c
[analyzer] Taint: add taint propagation rules for string and memory copy
...
functions.
llvm-svn: 148370
2012-01-18 02:45:07 +00:00
Anna Zaks
28db7ceabd
Constify FunctionDecl::getmemoryFunctionKind().
...
llvm-svn: 148369
2012-01-18 02:45:01 +00:00
Nick Lewycky
72cd229398
Fix special king of typo.
...
llvm-svn: 148368
2012-01-18 01:50:13 +00:00
Eli Friedman
fbc0dff6f8
Fix a couple issues where we didn't correctly delay diagnostics in PotentiallyPotentiallyEvaluated contexts. In preparation for making sizeof() PotentiallyPotentiallyEvaluated.
...
llvm-svn: 148367
2012-01-18 01:05:54 +00:00
Jim Grosbach
adcc938c46
Thumb2 load/store fixups don't set the thumb bit.
...
Load/store instructions w/ a fixup to be relative a function marked as thumb
don't use the low bit to specify thumb vs. non-thumb like interworking
branches do, so don't set it when dealing with those fixups.
rdar://10348687.
llvm-svn: 148366
2012-01-18 00:40:25 +00:00
Howard Hinnant
f30d9ad6e1
Create target installhdrs as a synonym for do-installhdrs.
...
llvm-svn: 148365
2012-01-18 00:30:57 +00:00
Jim Grosbach
3b50c9ec7f
Move some ARM specific MCAssmebler bits into the ARMAsmBackend.
...
llvm-svn: 148364
2012-01-18 00:23:57 +00:00
Jakob Stoklund Olesen
f43b599550
Add a CoveredBySubRegs property to Register descriptions.
...
When set, this bit indicates that a register is completely defined by
the value of its sub-registers.
Use the CoveredBySubRegs property to infer which super-registers are
call-preserved given a list of callee-saved registers. For example, the
ARM registers D8-D15 are callee-saved. This now automatically implies
that Q4-Q7 are call-preserved.
Conversely, Win64 callees save XMM6-XMM15, but the corresponding
YMM6-YMM15 registers are not call-preserved because they are not fully
defined by their sub-registers.
llvm-svn: 148363
2012-01-18 00:16:39 +00:00
Daniel Dunbar
9619961e1b
[lit] Add a --filter option which is useful when dealing with virtual test
...
paths.
llvm-svn: 148362
2012-01-18 00:03:12 +00:00
Fariborz Jahanian
07b5f4ca03
output body of folded case again.
...
llvm-svn: 148361
2012-01-17 23:55:19 +00:00
Jakub Staszak
62e5f55874
Remove unneeded include.
...
llvm-svn: 148360
2012-01-17 23:53:08 +00:00
Fariborz Jahanian
9ce39e299d
Folding away unreachable case statement.
...
patch (slightly revised) by Aaron Ballman.
llvm-svn: 148359
2012-01-17 23:39:50 +00:00
Douglas Gregor
a95f9aaa84
Make sure to initialize ExternalProtocolPtrTy
...
llvm-svn: 148358
2012-01-17 23:38:32 +00:00
Jakob Stoklund Olesen
fdbb12b235
Implement ARMBaseRegisterInfo::getCallPreservedMask().
...
Move ARM callee-saved lists into ARMCallingConv.td.
llvm-svn: 148357
2012-01-17 23:09:00 +00:00
Jim Grosbach
3fa6dcfebb
Fix MCJIT memory leak of owned TargetMachine.
...
The JIT is expected to take ownership of the TM that's passed in. The MCJIT
wasn't freeing it, resulting in leaks.
llvm-svn: 148356
2012-01-17 23:08:46 +00:00
Fariborz Jahanian
c72a807039
objc-arc: when 'assign' attribute is unspecified,
...
rely on property's type for its life-time to avoid
bogus warning with -Warc-unsafe-retained-assign.
// rdar://10694932
llvm-svn: 148355
2012-01-17 22:58:16 +00:00
Sebastian Redl
be24ec22fd
Add Sema::isInitListConstructor. This will be needed for upcoming work.
...
llvm-svn: 148354
2012-01-17 22:50:14 +00:00
Sebastian Redl
42acd4a05b
Auto deduction support for std::initializer_list, including for-range support. This means you can now write:
...
for (int i : {1, 4, 512, 23, 251}) {}
llvm-svn: 148353
2012-01-17 22:50:08 +00:00
Sebastian Redl
43144e72b5
Template argument deduction for std::initializer_list arguments from initializer lists.
...
llvm-svn: 148352
2012-01-17 22:49:58 +00:00