- May 01, 2010
-
-
Douglas Gregor authored
llvm-svn: 102847
-
Anders Carlsson authored
llvm-svn: 102846
-
Anders Carlsson authored
llvm-svn: 102845
-
Anders Carlsson authored
llvm-svn: 102842
-
Douglas Gregor authored
information required to implicitly define a C++ special member function. Use it rather than explicitly setting CurContext on entry and exit, which is fragile. Use this RAII object for the implicitly-defined default constructor, copy constructor, copy assignment operator, and destructor. llvm-svn: 102840
-
David Chisnall authored
llvm-svn: 102839
-
David Chisnall authored
llvm-svn: 102837
-
David Chisnall authored
Used this in CGObjCGNU to attach metadata about message sends to permit speculative inlining. llvm-svn: 102833
-
John McCall authored
already knows what context it's looking in. Just pass that context in instead of (questionably) recalculating it. llvm-svn: 102818
-
Ted Kremenek authored
more resilient to bad code. llvm-svn: 102793
-
- Apr 30, 2010
-
-
Ted Kremenek authored
fatal error has occurred. llvm-svn: 102778
-
Douglas Gregor authored
parameter with pointer-to-member type, we may have to perform a qualification conversion, since the pointee type of the parameter might be more qualified than the pointee type of the argument we form from the declaration. Fixes PR6986. llvm-svn: 102777
-
John McCall authored
access. Fixes an assertion. Fixes rdar://problem/7927811. Too lazy to reduce a test case. llvm-svn: 102776
-
Douglas Gregor authored
constant expression in C. llvm-svn: 102762
-
Anders Carlsson authored
llvm-svn: 102747
-
Douglas Gregor authored
of the mapping from local declarations to their instantiated counterparts during template instantiation. Previously, we tried to do some unholy merging of local instantiation scopes that involved storing a single hash table along with an "undo" list on the side... which was ugly, and never handled function parameters properly. Now, we just keep separate hash tables for each local instantiation scope, and "combining" two scopes means that we'll look in each of the combined hash tables. The combined scope stack is rarely deep, and this makes it easy to avoid the "undo" issues we were hitting. Also, I've simplified the logic for function parameters: if we're declaring a function and we need the function parameters to live longer, we just push them back into the local instantiation scope where we need them. Fixes PR6990. llvm-svn: 102732
-
David Chisnall authored
llvm-svn: 102711
-
Abramo Bagnara authored
Add calling convention related attributes to related declaration. Mark attributes invalid on type related checking so to add them to declarations only when everything is ok. llvm-svn: 102710
-
Abramo Bagnara authored
llvm-svn: 102705
-
John McCall authored
if *none* of the successors of the call expression is the exit block. This matters when a call of bool type is the condition of (say) a while loop in a function with no statements after the loop. This *can* happen in C, but it's much more common in C++ because of overloaded operators. Suppresses some substantial number of spurious -Wmissing-noreturn warnings. llvm-svn: 102696
-
Douglas Gregor authored
llvm-svn: 102695
-
Douglas Gregor authored
specializations, which keeps track of the order in which they were originally declared. We use this number so that we can always walk the list of partial specializations in a predictable order during matching or template instantiation. This also fixes a failure in Boost.Proto, where SourceManager::isBeforeInTranslationUnit was behaving poorly in inconsistent ways. llvm-svn: 102693
-
John McCall authored
a class with virtual bases. Just a patch until Sema starts (correctly) doing most of this analysis. Fixes PR 6622. llvm-svn: 102692
-
Douglas Gregor authored
InjectedClassNameType's Decl to point at the definition. It's a little messy, but we do the same thing with classes and their record types, since much of Clang expects that the TagDecl* one gets out of a type is the definition. Fixes several Boost.Proto failures. llvm-svn: 102691
-
Zhongxing Xu authored
llvm-svn: 102690
-
Zhongxing Xu authored
translation unit is parsed. This enables us to inline some calls when still analyzing one function at a time. Actions are classified into Function, CXXMethod, ObjCMethod, ObjCImplementation. This does not hurt performance much. The analysis time for sqlite3.c: before: real 17m52.440s user 17m49.460s sys 0m2.010s after: real 18m0.500s user 17m56.900s sys 0m2.330s DisplayProgress option is broken now. -inine-call action is removed. It will be reenabled in another form, perhaps as an indenpendant option. llvm-svn: 102689
-
John McCall authored
Also resolve a long-working FIXME in the test case I modified. llvm-svn: 102688
-
Douglas Gregor authored
llvm-svn: 102686
-
John McCall authored
when used by the exceptions routines. Fixes PR 6974. llvm-svn: 102684
-
Nate Begeman authored
llvm-svn: 102681
-
John McCall authored
might not have been an insertion block set at start. Fixes PR6975. llvm-svn: 102677
-
Anders Carlsson authored
llvm-svn: 102676
-
Anders Carlsson authored
llvm-svn: 102674
-
John McCall authored
entering the current instantiation. Set up a little to preserve type location information for typename types while we're in there. Fixes a Boost failure. llvm-svn: 102673
-
Nate Begeman authored
llvm-svn: 102669
-
Ted Kremenek authored
are several known issues to address for it should be turned on by default. llvm-svn: 102664
-
- Apr 29, 2010
-
-
Douglas Gregor authored
address of an overloaded function (or function template), perform that resolution prior to determining the implicit conversion sequence. This resolution is not part of the implicit conversion sequence itself. Previously, we would always consider this resolution to be a function pointer decay, which was a lie: there might be an explicit & in the expression, in which case decay should not occur. This caused the CodeGen assertion in PR6973 (where we created a pointer to a pointer to a function when we should have had a pointer to a function), but it's likely that there are corner cases of overload resolution where this would have failed. Cleaned up the code involved in determining the type that will produced afer resolving the overloaded function reference, and added an assertion to make sure the result is correct. Fixes PR6973. llvm-svn: 102650
-
Fariborz Jahanian authored
categories. Issue usual warnings instead of confusing error message. Radar 7920807 llvm-svn: 102645
-
Devang Patel authored
llvm::GLobalVariable name may not match user visibile name for function static variables. llvm-svn: 102644
-
Nate Begeman authored
llvm-svn: 102638
-