- Dec 14, 2012
-
-
Eli Friedman authored
llvm-svn: 170160
-
- Dec 13, 2012
-
-
David Blaikie authored
I wasn't sure where to put the test case for this, but this seemed like as good a place as any. I had to reorder the tests here to make them legible while still matching the order of metadata output in the IR file (for some reason making it virtual changed the ordering). Relevant commit to fix up LLVM to actually respect 'artificial' member variables is coming once I write up a test case for it. llvm-svn: 170154
-
Nadav Rotem authored
llvm-svn: 170143
-
Richard Smith authored
bit-patterns which are not valid values for enumerated or boolean types. These checks are the ubsan analogue of !range metadata. llvm-svn: 170108
-
Rafael Espindola authored
Patch by Andrew Turner. llvm-svn: 170096
-
Jordan Rose authored
We now check a few methods for UIResponder, NSResponder, and NSDocument. Patch by Julian Mayer! llvm-svn: 170089
-
Eli Friedman authored
and make sure additional uses don't get introduced. <rdar://problem/12858424>. llvm-svn: 170081
-
Anna Zaks authored
This is a Band-Aid fix to a false positive, where we complain about not initializing self to [super init], where self is not coming from the init method, but is coming from the caller to init. The proper solution would be to associate the self and it's state with the enclosing init. llvm-svn: 170059
-
Fariborz Jahanian authored
to (SEL). Fixes // rdar://12859590 llvm-svn: 170058
-
-
Eli Friedman authored
This still isn't quite right, but it fixes a crash. I factored out findCommonParent because we need it on the result of getImmediateExpansionRange: for a function macro, the beginning and end of an expansion range can come out of different macros/macro arguments, which means the resulting range is a complete mess to handle consistently. I also made some changes to how findCommonParent works; it works somewhat better in some cases, and somewhat worse in others, but I think overall it's a better balance. I'm coming to the conclusion that mapDiagnosticRanges isn't using the right algorithm, though: chasing the caret is fundamentally more complicated than any algorithm which only considers one FileID for the caret can handle because each SourceLocation doesn't really have a single parent. We need to follow the same path of choosing expansion locations and spelling locations which the caret used to come up with the correct range in the general case. Fixes <rdar://problem/12847524>. llvm-svn: 170049
-
- Dec 12, 2012
-
-
Argyrios Kyrtzidis authored
has inconsistent ownership with the backing ivar, point the error location to the ivar. Pointing to the ivar (instead of the @synthesize) is better since this is where a fix is needed. Also provide the location of @synthesize via a note. This also fixes the problem where an auto-synthesized property would emit an error without any location. llvm-svn: 170039
-
Chad Rosier authored
llvm-svn: 170038
-
John McCall authored
My variadics patch, r169588, changed these calls to typically be bitcasts rather than calls to a supposedly variadic function. This totally subverted a hack where we intentionally dropped excess arguments from such calls in order to appease the inliner and a "warning" from the optimizer. This patch extends the hack to also work with bitcasts, as well as teaching it to rewrite invokes. llvm-svn: 170034
-
Jordan Rose authored
We don't handle array destructors correctly yet, but we now apply the same hack (explicitly destroy the first element, implicitly invalidate the rest) for multidimensional arrays that we already use for linear arrays. <rdar://problem/12858542> llvm-svn: 170000
-
Chad Rosier authored
call sites as tail calls unconditionally. While it's theoretically true that this is just an optimization, it's an optimization that we very much want to happen even at -O0, or else ARC applications become substantially harder to debug. See r169796 for the llvm/fast-isel side of things. rdar://12553082 llvm-svn: 169996
-
Richard Smith authored
Don't warn about disabled macro expansion if we see the name of a function-like macro which isn't immediately followed by '('. FreeBSD's stdio.h #defines foo(x) to (foo)(x), apparently. llvm-svn: 169960
-
Argyrios Kyrtzidis authored
even if the directive is inside a declaration. Fixes rdar://11548788 & http://llvm.org/PR12970 llvm-svn: 169949
-
Richard Trieu authored
llvm-svn: 169947
-
NAKAMURA Takumi authored
"ansi-escape-sequences" is easy convenient to exclude win32. Please be patient. llvm-svn: 169945
-
- Dec 11, 2012
-
-
Douglas Gregor authored
llvm-svn: 169923
-
Douglas Gregor authored
llvm-svn: 169922
-
Douglas Gregor authored
latter is rather a mess to type. llvm-svn: 169919
-
Guy Benyei authored
llvm-svn: 169917
-
Hal Finkel authored
Add -fslp-vectorize (with -ftree-slp-vectorize as an alias for gcc compatibility) to provide a way to enable the basic-block vectorization pass. This uses the same acronym as gcc, superword-level parallelism (SLP), also common in the literature, to refer to basic-block vectorization. Nadav suggested this as a follow-up to the adding of -fvectorize. llvm-svn: 169909
-
Fariborz Jahanian authored
byref variable requires extended layout info. to prevent a crash involving arrays declared __block. // rdar://12787751 llvm-svn: 169908
-
Douglas Gregor authored
unavailable due to availability attributes. <rdar://problem/12798237> llvm-svn: 169903
-
Chad Rosier authored
compatibility with gcc. rdar://12839978 llvm-svn: 169888
-
Chad Rosier authored
rdar://12839978 llvm-svn: 169885
-
NAKAMURA Takumi authored
Sorry for my 3rd commit :( llvm-svn: 169827
-
NAKAMURA Takumi authored
clang/test/Driver/debug-options-as.c: Fixup not to use prefix=S. I didn't know "REQUIRES:" would match --check-prefix=S ... llvm-svn: 169826
-
NAKAMURA Takumi authored
It is not set at targetting cygming. See PR12920. llvm-svn: 169824
-
Rafael Espindola authored
We don't want to relax all instructions in $ clang -c test.s since most users don't pass -O when using the driver to assemble. On the other hand, -save-temps should not change the output unnecessary, so in $ clang -c test.c -save-temps we should relax all instructions. llvm-svn: 169815
-
Richard Smith authored
definition, rather than at the end of the definition of the set of nested classes. We still defer checking of the user-specified exception specification to the end of the nesting -- we can't check that until we've parsed the in-class initializers for non-static data members. llvm-svn: 169805
-
Anna Zaks authored
inlined. Fixes a false positive that occurs if a user writes their own initWithBytesNoCopy:freeWhenDone wrapper. llvm-svn: 169795
-
- Dec 10, 2012
-
-
Bill Wendling authored
llvm-svn: 169778
-
Bill Wendling authored
llvm-svn: 169768
-
Chad Rosier authored
Also, add the -S option. llvm-svn: 169763
-
Argyrios Kyrtzidis authored
was #import'ed. llvm-svn: 169761
-
Bill Wendling authored
This prevents the functions generated by that pass from using the red zone. <rdar://problem/12843084> llvm-svn: 169755
-