Aaron Ballman
9d695091fd
Replacing err_attribute_argument_not_int with err_attribute_not_type_attr
...
llvm-svn: 187419
2013-07-30 14:10:17 +00:00
Aaron Ballman
be50eb86e6
Refactor some attributes to use checkFunctionOrMethodArgumentIndex instead of using custom logic. No functional changes intended.
...
llvm-svn: 187398
2013-07-30 00:48:57 +00:00
Eli Friedman
088d39afc6
Integers which are too large should be an error.
...
Switch some warnings over to errors which should never have been warnings
in the first place. (Also, a minor fix to the preprocessor rules for
integer literals while I'm here.)
llvm-svn: 186903
2013-07-23 00:25:18 +00:00
Argyrios Kyrtzidis
425daaa5d2
When a parameter list in a C function has an error, recover by forming a K&R function,
...
instead of a non-function type.
llvm-svn: 175868
2013-02-22 06:58:32 +00:00
Argyrios Kyrtzidis
e936505807
Don't crash when applying an alloc_size attribute on a K&R function.
...
llvm-svn: 175867
2013-02-22 06:58:28 +00:00
Nuno Lopes
e881ce2ef6
fix PR13071 / rdar://problem/11634669 :
...
crash on invalid function decl with alloc_size attribute
llvm-svn: 158663
2012-06-18 16:39:04 +00:00
Nuno Lopes
e44e93aa6b
alloc_size attribute: there's nothing wrong with alloc_size(1,1). It just means the function allocates x^2 bytes. GCC also accepts this syntax
...
llvm-svn: 158662
2012-06-18 16:27:56 +00:00
Nuno Lopes
5c7ad16fdd
implement Sema support for the alloc_size attribute
...
Portions of this patch by Xi Wang. Reviewed by Jordy Rose. Thank you both.
Codegen support will follow soon.
llvm-svn: 157360
2012-05-24 00:22:00 +00:00