- Dec 18, 2007
-
-
Chris Lattner authored
reported by Seo. llvm-svn: 45156
-
Chris Lattner authored
llvm-svn: 45155
-
Chris Lattner authored
int foo() { typedef int x[foo()]; static int y = sizeof(x); } previously we'd emit it on the typedef, which made not sense at all. llvm-svn: 45154
-
Chris Lattner authored
this method. llvm-svn: 45153
-
Chris Lattner authored
llvm-svn: 45152
-
Chris Lattner authored
llvm-svn: 45149
-
Steve Naroff authored
Add DefaultFunctionArrayConversion() to the indirection operator in Sema::ActOnUnaryOp(). This fixes a bug Chris forwarded from Oliver Hunt... typedef struct { char name[100]; } entry; char f1(entry *e) { return *e->name; } llvm-svn: 45148
-
Steve Naroff authored
Fixe bogus error for variable argument methods. Sema::ObjcGetTypeForMethodDefinition() wasn't preserving the isVariadic boolean. Another fix is to avoid synthsizing the function decl entirely, however this is a separate issue that I don't want to deal with now. Also added a FIXME to Sema::CheckFunctionCall(), which is currently emitting a bogus warning. llvm-svn: 45146
-
Anders Carlsson authored
Turns out the LLVMFoldingBuilder can fold InsertElement. Knowing this, we can get rid of our special casing of constants when creating vectors. llvm-svn: 45145
-
Steve Naroff authored
Improve how we find private method decls. This involved: - Changed Sema::ObjcActOnStartOfMethodDef() to register the methods with the global pools. - Changed Sema::ActOnInstanceMessage() to look in global pools (should be much less error prone). - Added a test case to message.m (for lookup that was broken). Misc changes while I was investigating this... - Changed Sema::ActOnAtEnd() to call AddFactoryMethodToGlobalPool (this looked like a cut/paste error). - Added a comment and tweaked another where I was using the first person. llvm-svn: 45142
-
Chris Lattner authored
Intrinsic::getDeclaration, allowing much more terse code. llvm-svn: 45136
-
Steve Naroff authored
Add __private_extern__ keyword and recognize it. Added a FIXME to indicate there is still work to do. llvm-svn: 45135
-
- Dec 17, 2007
-
-
Fariborz Jahanian authored
llvm-svn: 45125
-
Chris Lattner authored
left is this crazy thing called "testing". llvm-svn: 45124
-
Chris Lattner authored
contents of the header map. Look ma, no assumptions about input data here (aka, corrupt header maps can't crash the compiler - crazy thought). llvm-svn: 45122
-
Fariborz Jahanian authored
the protocol list (id<P,...> types). llvm-svn: 45121
-
Chris Lattner authored
llvm-svn: 45119
-
Chris Lattner authored
llvm-svn: 45118
-
Ted Kremenek authored
llvm-svn: 45116
-
Ted Kremenek authored
following hold: (1) A vprintf-like function is called that takes the argument list via a via_list argument. (2) The format string is a non-literal that is the parameter value of the enclosing function, e.g: void logmessage(const char *fmt,...) { va_list ap; va_start(ap,fmt); fprintf(fmt,ap); // Do not emit a warning. } In the future this special case will be enhanced to consult the "format" attribute attached to a function declaration instead of just allowing a blank check for all function parameters to be used as format strings to vprintf-like functions. This will happen when more support for attributes becomes available. llvm-svn: 45114
-
Chris Lattner authored
cross-endianness case, where we checked the version in the wrong endianness. Amusingly, the GCC logic that detects mixed endianness hmaps and rejects them is dead for this very reason. llvm-svn: 45113
-
Chris Lattner authored
except resolve lookups. llvm-svn: 45111
-
Ted Kremenek authored
llvm-svn: 45110
-
Chris Lattner authored
the create method. llvm-svn: 45109
-
Fariborz Jahanian authored
llvm-svn: 45107
-
Chris Lattner authored
llvm-svn: 45106
-
Fariborz Jahanian authored
Also fixed indentation problems. llvm-svn: 45105
-
Ted Kremenek authored
llvm-svn: 45104
-
Ted Kremenek authored
warnings. This flag is the inverse of to GCC's -Wformat-nonliteral option (in the clang driver, these warnings are on by default). Patch provided by Shantonu Sen. llvm-svn: 45103
-
Chris Lattner authored
llvm-svn: 45102
-
Ted Kremenek authored
This parallels a previous patch (duplicate logic caused the bug to appear in multiple locations): r44316 (http://llvm.org/viewvc/llvm-project?rev=44316&view=rev). Patch provided by Nuno Lopes. llvm-svn: 45098
-
Chris Lattner authored
llvm-svn: 45095
-
Chris Lattner authored
llvm-svn: 45094
-
Chris Lattner authored
HeaderSearch into DirectoryLookup, as a particular framework lookup is specific to the directory we are currently querying. llvm-svn: 45093
-
Chris Lattner authored
the internal representation. This also fixes a bug where -I foo -F foo would not search foo as both a normal and framework include dir. llvm-svn: 45092
-
Chris Lattner authored
llvm-svn: 45091
-
Chris Lattner authored
llvm-svn: 45090
-
Chris Lattner authored
llvm-svn: 45089
-
Chris Lattner authored
llvm-svn: 45087
-
Chris Lattner authored
we emit stuff like this: abort on missing sema of initializers, now we emit stuff like this: t3.c:1:24: warning: cannot codegen this initializer yet const char x[2][4] = { { 'a', 'b', '\0', '\0' }, { 'c', 'd', 'e', '\0' } }; ^~~~~~~~~~~~~~~~~~~~~~~~ This should be removed when sema is finished. llvm-svn: 45086
-