- Jan 30, 2009
-
-
Ted Kremenek authored
- NonLoc::MakeVal() would use sizeof(unsigned) (literally) instead of consulting ASTContext for the size (in bits) of 'int'. While it worked, it was a conflation of concepts and using ASTContext.IntTy is 100% correct. - RegionStore::getSizeInElements() no longer assumes that a VarRegion has the type "ConstantArray", and handles the case when uses use ordinary variables as if they were arrays. - Fixed ElementRegion::getRValueType() to just return the rvalue type of its "array region" in the case the array didn't have ArrayType. - All of this fixes <rdar://problem/6541136> llvm-svn: 63347
-
Daniel Dunbar authored
This redoes the default mode that ccc runs in w.r.t. using clang. Now ccc defaults to always using clang for any task clang can handle. However, the following options exist to tweak this behavior: -ccc-no-clang: Don't use clang at all for compilation (still used for static analysis). -ccc-no-clang-cxx: Don't use clang for C++ and Objective-C++ inputs. -ccc-no-clang-cpp: Don't use clang as a preprocessor. -ccc-clang-archs <archs>: If present, only use clang for the given comma separated list of architectures. This only works on Darwin for now. Note that all -ccc options must be first on the command line. llvm-svn: 63346
-
Daniel Dunbar authored
cpp-output, not c-cpp-output. llvm-svn: 63345
-
Fariborz Jahanian authored
non-fragile abi. llvm-svn: 63343
-
- Jan 29, 2009
-
-
Ted Kremenek authored
retain/release checker: When generating summaries for CF/CG functions, allow arguments to "escape" if they are passed to a function containing the terms "InsertValue", "SetValue", or "AddValue". This fixes <rdar://problem/6539791>. llvm-svn: 63341
-
Daniel Dunbar authored
llvm-svn: 63330
-
Fariborz Jahanian authored
build protocol translation table meta-data (objc2 non-fragile abi). llvm-svn: 63329
-
Douglas Gregor authored
Make CodeGen produce an error if we come across a non-constant initializer list that involves the GNU array-range designator extension llvm-svn: 63327
-
Fariborz Jahanian authored
Lot more to do in this area. llvm-svn: 63326
-
Chris Lattner authored
llvm-svn: 63324
-
Steve Naroff authored
This results in a 1.7% improvement for "Cocoa.h". If we can figure out how to return a "Decl *", rather than a Sema::LookupResult(), we will likely bump the speedup from 1.7%->2.5%. I verified this, however couldn't get it to work without breaking a fair number of C++ test cases. Will discuss with Doug offline. llvm-svn: 63320
-
Chris Lattner authored
llvm-svn: 63319
-
Chris Lattner authored
diags around, eliminating #defines, etc. Patch by Anders Johnsen! llvm-svn: 63318
-
Douglas Gregor authored
represents an implicit value-initialization of a subobject of a particular type. This replaces the (ab)use of CXXZeroValueInitExpr within initializer lists for the "holes" that occur due to the use of C99 designated initializers. The new test case is currently XFAIL'd, because CodeGen's ConstExprEmitter (in lib/CodeGen/CGExprConstant.cpp) needs to be taught to value-initialize when it sees ImplicitValueInitExprs. llvm-svn: 63317
-
Douglas Gregor authored
have to try to guess which member is being initialized. llvm-svn: 63315
-
Douglas Gregor authored
llvm-svn: 63310
-
Daniel Dunbar authored
eightbyte boundaries. - Getting harder to test now that we handle cases gcc & llvm-gcc get wrong ( { _Complex char; _Complex int; } is a good example). :) llvm-svn: 63305
-
Daniel Dunbar authored
llvm-svn: 63296
-
Daniel Dunbar authored
we see a Memory classification. llvm-svn: 63295
-
Daniel Dunbar authored
to still return an RValue of the correct type. llvm-svn: 63294
-
Daniel Dunbar authored
- This is my best initial guess at what the "spec" means, although it is not particularly clear on a number of points. Will refine through testing. llvm-svn: 63292
-
Daniel Dunbar authored
llvm-svn: 63286
-
Daniel Dunbar authored
(e.g., _Complex double -> { double, double } return). llvm-svn: 63285
-
Daniel Dunbar authored
llvm-svn: 63283
-
Chris Lattner authored
changes in various diagnostics code. llvm-svn: 63282
-
Daniel Dunbar authored
llvm-svn: 63281
-
Daniel Dunbar authored
llvm-svn: 63280
-
Daniel Dunbar authored
llvm-svn: 63279
-
Daniel Dunbar authored
- Lift (int,float) -> (int,float) conversion into separate routines. - Fix handling of, e.g., char -> _Complex int, which was producing a _Complex char value instead. llvm-svn: 63278
-
Daniel Dunbar authored
llvm-svn: 63277
-
Chris Lattner authored
llvm-svn: 63275
-
Chris Lattner authored
llvm-svn: 63272
-
Chris Lattner authored
redundant #includes. Patch by Anders Johnsen! llvm-svn: 63271
-
Chris Lattner authored
llvm[0]: Compiling SemaInit.cpp for Debug build SemaInit.cpp:171: error: ‘InitListChecker’ has not been declared SemaInit.cpp:171: error: ISO C++ forbids declaration of ‘InitListChecker’ with no type SemaInit.cpp: In function ‘int InitListChecker(clang::Sema*, clang::InitListExpr*, clang::QualType&)’: SemaInit.cpp:172: error: ‘hadError’ was not declared in this scope SemaInit.cpp:173: error: ‘SemaRef’ was not declared in this scope SemaInit.cpp:177: error: ‘FullyStructuredList’ was not declared in this scope llvm-svn: 63270
-
Daniel Dunbar authored
evaluation (alternate part of real/imag init was being set to 3 not 0 because the wrong APFloat constructor was being called). - Test cases coming once some more support is in. llvm-svn: 63264
-
Douglas Gregor authored
llvm-svn: 63262
-
Douglas Gregor authored
llvm-svn: 63261
-
Douglas Gregor authored
llvm-svn: 63258
-
Douglas Gregor authored
Eliminate infinite looping in a wacky case with designated initializers. Simplifies (somewhat) the actually checking of the initializer expression following the designators llvm-svn: 63257
-
Steve Naroff authored
The previous interface was very confusing. This is much more explicit, which will be easier to understand/optimize/convert. The plan is to eventually deprecate both of these functions. For now, I'm focused on performance. llvm-svn: 63256
-