- Oct 27, 2010
-
-
Douglas Gregor authored
llvm-svn: 117446
-
Anders Carlsson authored
llvm-svn: 117445
-
Anders Carlsson authored
llvm-svn: 117444
-
Chandler Carruth authored
a member call expression. This has proved to be a common pattern for users of RecursiveASTVisitor. llvm-svn: 117439
-
Zhongxing Xu authored
containing a DoStmt, and the LHS doesn't create a new block, then we should return RBlock. Otherwise we'll incorrectly return NULL. Also relax an assertion in VisitWhileStmt(). Reset 'Block' when it is finished. llvm-svn: 117436
-
John McCall authored
deciding whether to queue a decl for unused-declaration warnings. llvm-svn: 117431
-
John McCall authored
forward-declaration support unless there's really a mapping for that name. llvm-svn: 117426
-
Dan Gohman authored
llvm-svn: 117414
-
Fariborz Jahanian authored
of static data member of a class template. Fixes //rdar :// 8562966 and pr8409. llvm-svn: 117410
-
John McCall authored
in IR gen, and use those to fix a correctness issue with bool atomic intrinsics. rdar://problem/8461234 llvm-svn: 117403
-
- Oct 26, 2010
-
-
Dan Gohman authored
different ways. Check once, and use an assert to handle consistency checking. llvm-svn: 117397
-
Dan Gohman authored
doesn't need its return value. llvm-svn: 117393
-
Dan Gohman authored
so that it's done in one place. llvm-svn: 117386
-
Douglas Gregor authored
typo. This can happen with context-sensitive keywords like "super", when typo correction didn't know that "super" wasn't permitted in this context. llvm-svn: 117372
-
John McCall authored
There's probably still significant padding waste on x86-64 UNIXen, but the difference in 32-bit compiles should be significant. There are a lot of Expr nodes left that could lose a word this way. llvm-svn: 117359
-
John McCall authored
anymore. llvm-svn: 117357
-
John McCall authored
conversion to id over conversion to void*. llvm-svn: 117355
-
John McCall authored
the same rank as conversions of normal pointers to 'void*'. Also, resurrect a test case. Fixes rdar://problem/8592139 llvm-svn: 117354
-
Douglas Gregor authored
until after we've checked/promoted the argument. Hopefully fixes the Emacs regression due to my recent change that expanded type-checking in the presence of K&R function definitions. llvm-svn: 117353
-
John McCall authored
- tags with C linkage should ignore visibility=hidden - functions and variables with explicit visibility attributes should ignore the linkage of their types Either of these should be sufficient to fix PR8457. Also, FileCheck-ize a test case. llvm-svn: 117351
-
John McCall authored
covariant/contravariant overrides and implementations, but do so under control of a new flag (-Wno-objc-covariant-overrides, which yes does cover contravariance too). *At least* the covariance cases will probably be enabled by default shortly, but that's not totally uncontroversial. llvm-svn: 117346
-
Douglas Gregor authored
getCanonicalType() to make sure that the type we got back is actually canonical. This is the case for most types, which always build a canonical type when given canonical components. However, some types that involve expressions in their canonicalization (e.g., array types with dependent sizes) don't always build canonical types from canonical components, because there is no such thing as a "canonical" expression. Therefore, we do this extra mapping to ensure that the canonical types we store are actually canonical. llvm-svn: 117344
-
Ted Kremenek authored
Fix lazy symbolication bug in RegionStore involving fields of global variables. When invalidated, the entire globals memory space gets assigned a symbolic value, but that value was not being used for lazy symbolication of fields of globals. This could result in cases where bogus null dereferences were being reported. Fixes PR 8440. llvm-svn: 117336
-
Ted Kremenek authored
llvm-svn: 117335
-
Ted Kremenek authored
Tweak null dereference checker to give better diagnostics for null dereferences resulting from array accesses. llvm-svn: 117334
-
Dan Gohman authored
llvm-svn: 117328
-
Fariborz Jahanian authored
non-trivial copy constructors. // rdar: //8540501. A test will be added to llvm nightly tests. llvm-svn: 117324
-
- Oct 25, 2010
-
-
Dan Gohman authored
llvm-svn: 117321
-
Dan Gohman authored
they can be used outside of the main getTBAAInfo function. llvm-svn: 117320
-
Douglas Gregor authored
called. Fixes another aspect of PR8314. llvm-svn: 117308
-
Douglas Gregor authored
function definition, we should still use a prototype to type-check and convert the function arguments, if such a prototype exists. Fixes PR8314. llvm-svn: 117305
-
Ted Kremenek authored
llvm-svn: 117300
-
David Chisnall authored
Only warn for mismatched types in Objective-C methods when they are incompatible, not when they are simply different. Now we test whether the difference in types breaks the principle of substitutability, rather than whether they are different. A common idiom in Objective-C is to provide a definition of a method in a subclass that returns a more-specified version of an object than the superclass. This does not violate the principle of substitutability, because you can always use the object returned by the subclass anywhere that you could use the type returned by the superclass. It was, however, generating warnings with clang, leading people to believe that semantically correct code was incorrect and requiring less accurate type specification and explicit down-casts (neither of which is a good thing to encourage). This change ensures that any method definition has parameter and return types that make it accept anything that something conforming to the declaration may pass and return something that the caller will expect, but allows stricter definitions. llvm-svn: 117271
-
Chandler Carruth authored
This adds them where missing, and traces them through PCH. We fix at least one bug in the extents found by the Index library, and make a lot of refactoring tools which care about the exact formulation of a constructor call easier to write. Also some minor cleanups to more consistently follow the friend pattern instead of the setter pattern when rebuilding a serialized AST. Patch originally by Samuel Benzaquen. llvm-svn: 117254
-
Marcin Swiderski authored
There's only one destructor call generated for each not empty array (at least for now this should be enough). llvm-svn: 117252
-
Marcin Swiderski authored
There's only one destructor call generated for each not empty array (at least for now this should be enough). llvm-svn: 117251
-
- Oct 24, 2010
-
-
Peter Collingbourne authored
as a function argument, one of the types is a transparent union type and the other type is compatible with a union member llvm-svn: 117243
-
Argyrios Kyrtzidis authored
llvm-svn: 117240
-
Argyrios Kyrtzidis authored
In that case a chained PCH will record the updates to the DefinitionData pointer of forward references. If a forward reference mutated into a definition re-write it into the chained PCH, this is too big of a change. llvm-svn: 117239
-
Argyrios Kyrtzidis authored
Introduce a DeclsToRewrite field in ASTWrite, used for collecting the decls that will be replaced in the chained PCH. llvm-svn: 117238
-