| Commit message (Collapse) | Author | Age | Files | Lines | 
| ... |  | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
constructor call.
This maybe fixes some of the errors GCC 4.5 gives on this code.
llvm-svn: 95684
 | 
| | 
| 
| 
| 
| 
| 
|  | 
context with the AST importer. WIP, still useless but at least it has
a test.
llvm-svn: 95683
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
NULL, not the store, to determine if a lookup succeeded.  The store
can be null if it contained no bindings.  This fixes a false positive
reported to me by a user of the analyzer.
llvm-svn: 95679
 | 
| | 
| 
| 
|  | 
llvm-svn: 95678
 | 
| | 
| 
| 
|  | 
llvm-svn: 95673
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
Sema::ActOnUninitializedDecl over to InitializationSequence (with
default initialization), eliminating redundancy. More importantly, we
now check that a const definition in C++ has an initilizer, which was
an #if 0'd code for many, many months. A few other tweaks were needed
to get everything working again:
  - Fix all of the places in the testsuite where we defined const
    objects without initializers (now that we diagnose this issue)
  - Teach instantiation of static data members to find the previous
    declaration, so that we build proper redeclaration
    chains. Previously, we had the redeclaration chain but built it
    too late to be useful, because...
  - Teach instantiation of static data member definitions not to try
    to check an initializer if a previous declaration already had an
    initializer. This makes sure that we don't complain about static
    const data members with in-class initializers and out-of-line
    definitions.
  - Move all of the incomplete-type checking logic out of
    Sema::FinalizeDeclaratorGroup; it makes more sense in
    ActOnUnitializedDecl.
There may still be a few places where we can improve these
diagnostics. I'll address that as a separate commit.
llvm-svn: 95657
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
particular type, and flood fill. - CreateMemTemp sets the alignment on the alloca correctly, which fixes a great many places in IRgen where we were doing the wrong thing.
- This fixes many many more places than the test case, but my feeling is we need to audit alignment systematically so I'm not inclined to try hard to test the individual fixes in this patch. If this bothers you, patches welcome!
PR6240.
llvm-svn: 95648
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
not *any* base up to now has produced a path.  Fixes PR 6254.
I'll do the access-control part of this patch RSN.
llvm-svn: 95638
 | 
| | 
| 
| 
| 
| 
|  | 
types; we don't want to give an expression reference type. Fixes PR6177.
llvm-svn: 95635
 | 
| | 
| 
| 
| 
| 
| 
|  | 
specialization does not use any of its template parameters, then
recover far more gracefully. Fixes PR6181.
llvm-svn: 95629
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
At the moment the inlinehint attribute is ignored by the Inliner unless you
pass a -respect-inlinehint option.  This will soon be the default.
The inlinehint attribute is set if the inline keyword is explicitly specified
on any declaration.
llvm-svn: 95623
 | 
| | 
| 
| 
|  | 
llvm-svn: 95621
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
non-type template parameter that has reference type, augment the
qualifiers of the non-type template argument with those of the
referenced type. Fixes PR6250.
llvm-svn: 95607
 | 
| | 
| 
| 
| 
| 
| 
|  | 
may be some other places that could take advantage of this new information,
but I haven't really looked yet.
llvm-svn: 95600
 | 
| | 
| 
| 
| 
| 
| 
|  | 
ObjCObjectPointerType AST node by allocating the list of protocols
after the type node itself. No functionality change.
llvm-svn: 95597
 | 
| | 
| 
| 
| 
| 
|  | 
element type always matched the converted LLVM type for ExprType.
llvm-svn: 95596
 | 
| | 
| 
| 
| 
| 
|  | 
type (-Wswitch), from Michal! 
llvm-svn: 95592
 | 
| | 
| 
| 
| 
| 
|  | 
defined by itself, from Enea Zaffanella!
llvm-svn: 95586
 | 
| | 
| 
| 
| 
| 
| 
|  | 
The standard actually says that such references should have internal linkage,
but gcc doesn't do that, so we probably can't get away with it.
llvm-svn: 95577
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
|  | 
attribute properly and avoid bogus warning. This is
an objective-c fix only. objective-c++ follows different code
pass and requires separate fix (which will come at a later time).
Fixes radar 7214820.
llvm-svn: 95571
 | 
| | 
| 
| 
| 
| 
| 
|  | 
the AST importer. This doesn't actually do anything (yet), because we
don't have driver logic for merging ASTs.
llvm-svn: 95570
 | 
| | 
| 
| 
|  | 
llvm-svn: 95563
 | 
| | 
| 
| 
|  | 
llvm-svn: 95561
 | 
| | 
| 
| 
| 
| 
|  | 
sure that the new token's range extends to the end of the old token. Assert that in AnnotateCachedTokens. Fixes PR6248.
llvm-svn: 95555
 | 
| | 
| 
| 
|  | 
llvm-svn: 95554
 | 
| | 
| 
| 
|  | 
llvm-svn: 95553
 | 
| | 
| 
| 
|  | 
llvm-svn: 95552
 | 
| | 
| 
| 
| 
| 
|  | 
convention lookup.
llvm-svn: 95547
 | 
| | 
| 
| 
| 
| 
|  | 
3 files changed, 76 insertions(+), 153 deletions(-)
llvm-svn: 95546
 | 
| | 
| 
| 
|  | 
llvm-svn: 95545
 | 
| | 
| 
| 
|  | 
llvm-svn: 95543
 | 
| | 
| 
| 
| 
| 
|  | 
GRState::getSVal(MemRegion*) => Load().
llvm-svn: 95541
 | 
| | 
| 
| 
|  | 
llvm-svn: 95540
 | 
| | 
| 
| 
| 
| 
|  | 
alloca region.
llvm-svn: 95539
 | 
| | 
| 
| 
| 
| 
| 
|  | 
It's more sophisticated than the original one of BasicStore. But it does
matter. 
llvm-svn: 95536
 | 
| | 
| 
| 
|  | 
llvm-svn: 95535
 | 
| | 
| 
| 
|  | 
llvm-svn: 95534
 | 
| | 
| 
| 
| 
| 
|  | 
glaring logic bug anyways. =D
llvm-svn: 95533
 | 
| | 
| 
| 
|  | 
llvm-svn: 95531
 | 
| | 
| 
| 
|  | 
llvm-svn: 95529
 | 
| | 
| 
| 
| 
| 
| 
| 
| 
| 
|  | 
deduction. This requires refactoring the deduction to have access to the Sema
object instead of merely the ASTContext. Still leaves something to be desired
due to poor source location.
Fixes PR6257 and half of PR6259.
llvm-svn: 95528
 | 
| | 
| 
| 
|  | 
llvm-svn: 95525
 | 
| | 
| 
| 
| 
| 
|  | 
pointer. Fixes PR6258.
llvm-svn: 95524
 | 
| | 
| 
| 
|  | 
llvm-svn: 95517
 | 
| | 
| 
| 
| 
| 
|  | 
from Keir Mierle!
llvm-svn: 95516
 | 
| | 
| 
| 
|  | 
llvm-svn: 95515
 | 
| | 
| 
| 
|  | 
llvm-svn: 95514
 | 
| | 
| 
| 
|  | 
llvm-svn: 95513
 | 
| | 
| 
| 
|  | 
llvm-svn: 95512
 | 
| | 
| 
| 
| 
| 
| 
| 
|  | 
their parent's visibility.
(This is kind of a risky change, but I did a self-host build and everything appears to work fine!)
llvm-svn: 95511
 |