- Jun 26, 2012
-
-
Kostya Serebryany authored
llvm-svn: 159191
-
Richard Smith authored
constexpr function evaluation, and corresponding ASan / valgrind issue in tests, by storing the corresponding value with the relevant stack frame. This also prevents re-evaluation of the source of the underlying OpaqueValueExpr, which makes a major performance difference for certain contrived code (see testcase update). llvm-svn: 159189
-
Daniel Dunbar authored
llvm-svn: 159174
-
Nico Weber authored
llvm-svn: 159171
-
Nico Weber authored
llvm-svn: 159170
-
Manman Ren authored
Revert r136662 which disables ARM byval. llvm-svn: 159168
-
- Jun 25, 2012
-
-
David Blaikie authored
This works around a quirk in the way that explicit template specializations are handled in Clang. We generate an implicit declaration from the original template which the explicit specialization is considered to redeclare. This trips up the explicit delete logic. This change only works around that strange representation. At some point it'd be nice to remove those extra declarations to make the AST more accurately reflect the C++ semantics. Review by Doug Gregor. llvm-svn: 159167
-
Richard Smith authored
struct and enum forward-declarations. llvm-svn: 159164
-
Eli Friedman authored
Use std::map instead of llvm::DenseMap because we rely on the stability of references to values in these maps. PR13197. llvm-svn: 159161
-
Jordan Rose authored
The implicit global allocation functions do not have valid source locations, but we still want to treat them as being "system header" functions for the purposes of how they affect program state. llvm-svn: 159160
-
Richard Smith authored
resulted in it being reverted. A test for that bug was added in r158950. Original comment: If an object (such as a std::string) with an appropriate c_str() member function is passed to a variadic function in a position where a format string indicates that c_str()'s return type is desired, provide a note suggesting that the user may have intended to call the c_str() member. Factor the non-POD-vararg checking out of DefaultVariadicArgumentPromotion and move it to SemaChecking in order to facilitate this. Factor the call checking out of function call checking and block call checking, and extend it to cover constructor calls too. Patch by Sam Panzer! llvm-svn: 159159
-
DeLesley Hutchins authored
llvm-svn: 159152
-
Matt Beaumont-Gay authored
llvm-svn: 159151
-
Nico Weber authored
for non-type template parameters in microsoft mode. PR12709. llvm-svn: 159147
-
Daniel Jasper authored
llvm-svn: 159130
-
Richard Smith authored
and #endif in non-skipped blocks were not passed to the CommentHandler. Patch by Andy Gibbs! llvm-svn: 159119
-
- Jun 24, 2012
-
-
Jordan Rose authored
llvm-svn: 159095
-
Jordan Rose authored
% diagtool tree -Wunused-value -Wunused-value -Wunused-comparison warn_unused_comparison -Wunused-result warn_unused_result warn_unused_call warn_unused_container_subscript_expr warn_unused_expr warn_unused_property_expr warn_unused_voidptr llvm-svn: 159093
-
Charles Davis authored
llvm-svn: 159091
-
John McCall authored
llvm-svn: 159089
-
- Jun 23, 2012
-
-
Fariborz Jahanian authored
id <Protocol>. // rdar://11618852 llvm-svn: 159084
-
Hans Wennborg authored
Not all targets support __thread variables. llvm-svn: 159080
-
Hans Wennborg authored
This adds support for the tls_model attribute. This allows the user to choose a TLS model that is better than what LLVM would select by default. For example, a variable might be declared as: __thread int x __attribute__((tls_model("initial-exec"))); if it will not be used in a shared library that is dlopen'ed. This depends on LLVM r159077. llvm-svn: 159078
-
Alexis Hunt authored
attributes in more places where we didn't and catching a lot more issues. This implements nearly every aspect of C++11 attribute parsing, except for: - Attributes are permitted on explicit instantiations inside the declarator (but not preceding the decl-spec) - Attributes are permitted on friend declarations of functions. - Multiple instances of the same attribute in an attribute-list (e.g. [[noreturn, noreturn]], not [[noreturn]] [[noreturn]] which is conforming) are allowed. The first two are marked as expected-FIXME in the test file and the latter is probably a defect and is currently untested. Thanks to Richard Smith for providing the lion's share of the testcases. llvm-svn: 159072
-
Nico Weber authored
Heavily based on a patch from Aaron Wishnick <aaron.s.wishnick@gmail.com>. I'll clean up the duplicated function in CodeGen as a follow-up, later today or tomorrow. llvm-svn: 159060
-
Timur Iskhodzhanov authored
[Windows] Fix mangling of repeated types in the presence of bool and function pointers PR13176,PR13177 llvm-svn: 159059
-
Charles Davis authored
MicrosoftMangle: Fix mangling of integral constant non-type template arguments in a class specialization. llvm-svn: 159056
-
Richard Smith authored
llvm-svn: 159054
-
Ted Kremenek authored
llvm-svn: 159047
-
Kaelyn Uhrain authored
llvm-svn: 159046
-
Anna Zaks authored
relinquish memory. llvm-svn: 159043
-
Anna Zaks authored
(Committed in r159038 by mistake.) llvm-svn: 159040
-
Anna Zaks authored
This would be useful to investigate performance issues. llvm-svn: 159038
-
Anna Zaks authored
llvm-svn: 159037
-
Anna Zaks authored
llvm-svn: 159036
-
- Jun 22, 2012
-
-
Dmitri Gribenko authored
llvm-svn: 159026
-
Nuno Lopes authored
revert CodeGen support for the alloc_size attribute until we finish the design of a more generic metadata node llvm-svn: 159016
-
Rafael Espindola authored
llvm-svn: 159012
-
Jordan Rose authored
We don't handle exceptions yet, so we treat them as sinks. ExprEngine hardcodes messages that are known to raise Objective-C exceptions like -raise, but it was only checking for +raise:format: and +raise:format:arguments: on NSException itself, not subclasses. <rdar://problem/11724201> llvm-svn: 159010
-
DeLesley Hutchins authored
properly if there is a join point in the control flow graph that involves a trylock. Also changes the source locations of some warnings to be more consistent. llvm-svn: 159008
-