- Jul 16, 2011
-
-
Fariborz Jahanian authored
llvm-svn: 135348
-
Joerg Sonnenberger authored
more happy on NetBSD. llvm-svn: 135344
-
Fariborz Jahanian authored
llvm-svn: 135328
-
Argyrios Kyrtzidis authored
[arcmt] It's not safe to remove the -release on "[[someivar delegate] release];" since it's very likely that, after migration, the object that was passed to 'setDelegate:' will not be properly retained, e.g: -whatever { id x = [[MyDoHicky alloc] init]; [someivar setDelegate: x]; // x won't get retained in ARC. } -dealloc { [[someivar delegate] release]; // give migration error here. } rdar://8858009 llvm-svn: 135327
-
Tanya Lattner authored
Test cases provided by Anton Lokhmot. llvm-svn: 135322
-
Jordy Rose authored
Add tests for CFRefReport's path notes, and fix a few typos and non-standard terminology ('+0 retain counts') caught by the tests. llvm-svn: 135310
-
Argyrios Kyrtzidis authored
llvm-svn: 135309
-
- Jul 15, 2011
-
-
Chad Rosier authored
conflicts with a to be produced temp filename. rdar://9724657 llvm-svn: 135308
-
Douglas Gregor authored
to allow clients to specify that they've already (correctly) loaded declarations, and that no further action is needed. Also, make sure that we clear the "has external lexical declarations" bit before calling FindExternalLexicalDecls(), to avoid infinite recursion. llvm-svn: 135306
-
Argyrios Kyrtzidis authored
id x = ... @try { ... } @finally { [x release]; } Migrator will drop the release. It's better to change it to "x = 0" in a @finally to avoid leak when exception is thrown. rdar://9398256 llvm-svn: 135301
-
Jordy Rose authored
llvm-svn: 135294
-
Joerg Sonnenberger authored
llvm-svn: 135285
-
Jeffrey Yasskin authored
convertToInt(integerParts*) and make them more reliable. llvm-svn: 135279
-
Douglas Gregor authored
llvm-svn: 135275
-
Douglas Gregor authored
attributes. Fixes <rdar://problem/9561076>. llvm-svn: 135273
-
Jay Foad authored
llvm-svn: 135265
-
John McCall authored
which is required given the current setup for template argument deduction substitution validation, and add a test case to make sure we don't break it in the future. llvm-svn: 135262
-
Chandler Carruth authored
the exception of its uses of SourceManager and SourceLocation APIs. llvm-svn: 135260
-
John McCall authored
Also add the missing serialization support for SEHTryStmt, SEHFinallyStmt, and SEHExceptStmt, and fix and finish the serialization support for AsTypeExpr. In addition, change the code so that it will no longer link if a Stmt subclass is missing serialization support. llvm-svn: 135258
-
John McCall authored
is right --- shouldn't there be a TypeLoc in here somewhere? --- but at least it doesn't have a redundant QualType and a broken children() method. Noticed this while doing things in serialization. llvm-svn: 135257
-
Chris Lattner authored
to prevent recursive compilation problems. This fixes a failure of CodeGen/decl.c on x86-32 targets that don't fill in the coerce-to type. llvm-svn: 135256
-
Jordy Rose authored
Clean up UnixAPIChecker, including switching its array of BugTypes to llvm::OwningPtr<BugType> vars (the new convention). No functionality change. llvm-svn: 135255
-
Jordy Rose authored
Clean up MacOSXAPIChecker, including switching its array of BugTypes to a single llvm::OwningPtr<BugType> (the new convention). No functionality change. llvm-svn: 135250
-
Chris Lattner authored
types. Fore xample, we used to lower: struct bar { int a; }; struct foo { void (*FP)(struct bar); } G; to: %struct.foo = type { {}* } since the function pointer would cause recursive translation of bar and we didn't know if that would get us into trouble. We are now smart enough to know that it is fine, so we get this type instead: %struct.foo = type { void (i32)* } Codegen still needs to be prepared for uncooperative types at any place, which is why I let the maximally uncooperative code sit around for awhile to help shake out the bugs. llvm-svn: 135244
-
John McCall authored
to represent a fully-substituted non-type template parameter. This should improve source fidelity, as well as being generically useful for diagnostics and such. llvm-svn: 135243
-
Chandler Carruth authored
llvm-svn: 135226
-
Chandler Carruth authored
'expansion'. llvm-svn: 135224
-
Chandler Carruth authored
ARCMigrate. llvm-svn: 135223
-
Richard Trieu authored
Remove warnings of constant operands of logical operators from template instantiations. Upon instantiation of template, value-dependent parameters are replaced by equivalent literals, so code like: template<unsigned int A, unsigned int B> struct S { int foo() { int x = A && B; } } will not warn on A && B on every instantiation. This will still warn on other cases inside templates, which will be caught on checking the template definition. llvm-svn: 135222
-
Ted Kremenek authored
Fix false negative reported in PR 10358 by using 'Unknown' in -Wuninitialized to avoid cascading warnings. Patch by Kaelyn Uhrain. llvm-svn: 135217
-
-
Rafael Espindola authored
Revert "For C++11, do more checking of initializer lists up-front, enabling some subset of the final functionality. C just leaves the function early. C++98 runs through the same code path, but has no changed functionality either." This reverts commit ac420c5053d6aa41d59f782caad9e46e5baaf2c2. llvm-svn: 135210
-
Argyrios Kyrtzidis authored
Keep the error if the result is unused. rdar://9552694. llvm-svn: 135209
-
John McCall authored
llvm-svn: 135208
-
- Jul 14, 2011
-
-
Richard Smith authored
PR10359: Template declarations which define classes are not permitted to also contain declarators. Previously we would accept code like this: template<typename T> struct S { } f() { return 0; } This case now produces a missing ';' diagnostic, since that seems like a much more likely error than an attempt to declare a function or variable in addition to the class template. Treat this llvm-svn: 135195
-
Argyrios Kyrtzidis authored
An unused autorelease is badness. If we remove it the receiver will likely die immediately while previously it was kept alive by the autorelease pool. This is bad practice in general, so leave it and emit an error to force the user to restructure his code. rdar://9599884 llvm-svn: 135193
-
Sebastian Redl authored
For C++11, do more checking of initializer lists up-front, enabling some subset of the final functionality. C just leaves the function early. C++98 runs through the same code path, but has no changed functionality either. This is a first baby step towards supporting generalized initializer lists. This also removes an aggregate test case that was just plain wrong, assuming that non-aggregates couldn't be initialized with initializer lists in C++11 mode. llvm-svn: 135177
-
Sebastian Redl authored
llvm-svn: 135175
-
Chris Lattner authored
llvm-svn: 135170
-
Chris Lattner authored
llvm-svn: 135166
-