- Apr 13, 2010
-
-
Chris Lattner authored
this caused us to codegen dead globals like this: struct foo { int a; int b; }; static struct foo fooarray[] = { {1, 2}, {4}, }; llvm-svn: 101150
-
Chris Lattner authored
Without it, there is no reason for a compiler that supports it to emit the dead static globals that the rewriter labels attribute(used). llvm-svn: 101149
-
Douglas Gregor authored
for reference binding. The code attempted to handle both the computation of the ICS and the actual conversion, but the latter is an anachronism: we now use InitializationSequence for that. Sema::CheckReferenceInit is now a static function TryReferenceInit that's only use within overload resolution, and has been simplified slightly. It still needs to be updated per C++ [over.ics.ref], by eliminating more of the lvalue/rvalue checks. llvm-svn: 101136
-
Douglas Gregor authored
return a NULL expression; return either an error or a proper expression. Fixes PR6078. llvm-svn: 101133
-
Douglas Gregor authored
direct reference binding when the source and target types are not reference-related. Fixes PR6066. llvm-svn: 101132
-
Zhongxing Xu authored
llvm-svn: 101129
-
Zhongxing Xu authored
llvm-svn: 101128
-
Zhongxing Xu authored
llvm-svn: 101127
-
John McCall authored
members of non-templated classes. llvm-svn: 101122
-
Zhongxing Xu authored
llvm-svn: 101120
-
John McCall authored
PR6207. llvm-svn: 101119
-
John McCall authored
friend declaration; this used to be important but is now just a waste of time plus an unreasonable assertion. Fixes PR6174. llvm-svn: 101112
-
Chris Lattner authored
patch by Sylvere Teissier! llvm-svn: 101108
-
Fariborz Jahanian authored
atomicity of aggregate properties in setter/getter methods. wip. llvm-svn: 101107
-
Devang Patel authored
llvm-svn: 101100
-
Chris Lattner authored
llvm-svn: 101099
-
John McCall authored
llvm-svn: 101098
-
Chris Lattner authored
PR6101. This is based on a patch and testcase by Jordy Rose! llvm-svn: 101097
-
Douglas Gregor authored
llvm-svn: 101092
-
Douglas Gregor authored
from a conversion function template specialization to one of exact match rank. We only know how to test this in C++0x with default function template arguments, but it's also in the C++03 spec. Fixes PR6285. llvm-svn: 101089
-
Douglas Gregor authored
copying the type location information from the conversion-type-id into the type location information for the function type. Do something similar for constructors and destructors, by giving their "void" return type source-location information. In all of these cases, we previously left this type-source information uninitialized, which led to various unfortunate crashes. We still aren't tracking good source-location information for the actual names. That's PR6357. John, please check my sanity on this. llvm-svn: 101088
-
Chris Lattner authored
in an input file like this: # 42 int x; we were emitting: # <something> int x; (with a space before the int) because we weren't clearing the leading whitespace flag properly after the \n from the directive was handled. llvm-svn: 101084
-
Ted Kremenek authored
llvm-svn: 101073
-
- Apr 12, 2010
-
-
Chris Lattner authored
actually turned it on. If a diag is produced by a warning which is an extension but defaults to on, and has no warning group, don't print any option info. llvm-svn: 101071
-
Chris Lattner authored
trailing fields may not be represented in initializer lists, they are being handled as padding and those fields *must* be zero initialized. llvm-svn: 101067
-
Daniel Dunbar authored
llvm-svn: 101066
-
Douglas Gregor authored
name-lookup ambiguities when there are multiple base classes that are all specializations of the same class template. This is part of a general cleanup for ambiguities in template-name lookup. Fixes PR6717. llvm-svn: 101065
-
Ted Kremenek authored
llvm-svn: 101060
-
Fariborz Jahanian authored
llvm-svn: 101052
-
Daniel Dunbar authored
llvm-svn: 101051
-
Chris Lattner authored
llvm-svn: 101050
-
Chris Lattner authored
rdar://7853261 llvm-svn: 101048
-
Douglas Gregor authored
sure to introduce them into the current Scope (when we have one) in addition to the DeclContext for the class, so that they can be found by name lookup for inline members of the class. Fixes PR6570. llvm-svn: 101047
-
Fariborz Jahanian authored
when it is not supported in versions of MacOs. llvm-svn: 101044
-
Douglas Gregor authored
ended up finding a function template that we didn't expect. Recover more gracefully, and fix a similar issue for class templates. llvm-svn: 101040
-
Douglas Gregor authored
function's type is (strictly speaking) non-dependent. This ensures that, e.g., default function arguments get instantiated properly. And, since I couldn't resist, collapse the two implementations of function-parameter instantiation into calls to a single, new function (Sema::SubstParmVarDecl), since the two had nearly identical code (and each had bugs the other didn't!). More importantly, factored out the semantic analysis of a parameter declaration into Sema::CheckParameter, which is called both by Sema::ActOnParamDeclarator (when parameters are parsed) and when a parameter is instantiated. Previously, we were missing some Objective-C and address-space checks on instantiated function parameters. Fixes PR6733. llvm-svn: 101029
-
Chris Lattner authored
llvm-svn: 101026
-
Chris Lattner authored
by David Chisnall llvm-svn: 101024
-
Chris Lattner authored
llvm-svn: 101022
-
Chris Lattner authored
This also fixes cases where super is used in a block in a method which isn't valid. llvm-svn: 101021
-