- Aug 16, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 79199
-
Mike Stump authored
llvm-svn: 79198
-
Anders Carlsson authored
llvm-svn: 79197
-
Anders Carlsson authored
llvm-svn: 79196
-
Chris Lattner authored
is found. Instead of complaining about a generic "unused expr", emit: t.m:7:3: warning: property access result unused - getters should not have side effects While objc property getters *could* have side effects, according to the language best practices, they *shouldn't*. Hopefully the diagnostic now gets this across. llvm-svn: 79192
-
Chris Lattner authored
llvm-svn: 79191
-
Chris Lattner authored
warnings, but it fails because we don't have the location of the . and I don't understand ObjCKVCRefExpr. I'll revisit this later. llvm-svn: 79190
-
Anders Carlsson authored
Add an IsInitializer flag to EmitAnyExpr. This is used to prevent temporaries from being destroyed when they're bound to a reference variable. llvm-svn: 79179
-
Anders Carlsson authored
No need to append extra padding now that we don't create packed structs for simple cases like the constant string. llvm-svn: 79178
-
Anders Carlsson authored
AddInitializerToDecl can't take a FullExprArg. Make it take an ExprArg, and create the CXXExprWithTemporaries before setting the initializer on the VarDecl. llvm-svn: 79176
-
Anders Carlsson authored
llvm-svn: 79173
-
Anders Carlsson authored
llvm-svn: 79172
-
Anders Carlsson authored
llvm-svn: 79171
-
Anders Carlsson authored
llvm-svn: 79168
-
Anders Carlsson authored
Move builtin call checking out into a separate function, make CheckFunctionCall and CheckBlockCall return bool instead. No intended functionality change. llvm-svn: 79157
-
Mike Stump authored
llvm-svn: 79156
-
Anders Carlsson authored
llvm-svn: 79149
-
Eli Friedman authored
initializes all the members; this fixes a valgrind error in the regression tests. llvm-svn: 79148
-
Eli Friedman authored
llvm-svn: 79145
-
- Aug 15, 2009
-
-
Eli Friedman authored
llvm-svn: 79143
-
Eli Friedman authored
simplifies the AST, and can matter in some rare cases involving casts to vector types. Patch by Enea Zaffanella. llvm-svn: 79126
-
Fariborz Jahanian authored
constructor body whose class has non-static data-members which required non-trivial construction. llvm-svn: 79125
-
Eli Friedman authored
llvm-svn: 79075
-
Zhongxing Xu authored
which is either a stack frame context of the function or a local scope context. llvm-svn: 79072
-
Eli Friedman authored
consistent model for handling size expressions for VLAs. The model is essentially as follows: VLA types own their associated expression. In some cases, we need to create multiple VLA types to represent a given VLA (for canonical types, or qualifiers on array types, or type merging). If we need to create multiple types based off of the same VLA declaration, we use the new refcounting functionality so they can all own the expression. The VLASizeMap in CodeGenFunction then uses the size expression to identify the group of VLA types based off of the same original declaration. I'm not particularly attached to the VLA types owning the expression, but we're stuck with at least until someone comes up with a way to walk the VLA expressions for a declaration. I did the parallel fix in ASTContext for DependentSizedArrayType, but I haven't really looked closely at it, so there might still be issues there. I'll clean up the code duplication in ASTContext in a followup commit. llvm-svn: 79071
-
John McCall authored
llvm-svn: 79070
-
Ted Kremenek authored
declarations (and not function pointers). This is consistent with GCC. Accepting this attribute on function pointers means that the attribute should be treated as a type qualifier, which apparently is not what GCC does. We obviously can change this later should we desire to enhance the 'malloc' attribute in this way. llvm-svn: 79060
-
Chris Lattner authored
llvm-svn: 79059
-
Chris Lattner authored
VLASize isn't populated for the type yet. llvm-svn: 79057
-
Ted Kremenek authored
declarations of function pointers. llvm-svn: 79053
-
- Aug 14, 2009
-
-
Fariborz Jahanian authored
a block pointer too. llvm-svn: 79050
-
Devang Patel authored
llvm-svn: 79043
-
Ted Kremenek authored
'cast'. llvm-svn: 79041
-
Ted Kremenek authored
attaching to Objective-C methods (which mirrors GCC's behavior) and to allow the return type of the function to be an Objective-C pointer or Block pointer (which GCC also accepts). Along the way, add 'const' to some of the pointer arguments of various utility functions... llvm-svn: 79040
-
Fariborz Jahanian authored
call. llvm-svn: 79034
-
Anders Carlsson authored
llvm-svn: 79013
-
Fariborz Jahanian authored
implement NSCopying protocol in GC mode. llvm-svn: 79008
-
Shantonu Sen authored
-Wno-error disables WarningsAsErrors instead of mistakenly being treated like -Werror llvm-svn: 78987
-
Anders Carlsson authored
llvm-svn: 78981
-
John McCall authored
still works. llvm-svn: 78979
-