- Dec 16, 2009
-
-
Eli Friedman authored
declarations of abort(), and two, we mark it noreturn. Missing the latter shows up in one of the "embarassing" tests (from the thread on llvmdev "detailed comparison of generated code size for LLVM and other compilers"). llvm-svn: 91515
-
Anders Carlsson authored
llvm-svn: 91507
-
Ted Kremenek authored
This change was a lot bigger than I originally anticipated; among other things it requires us storing more information in the CFG to record what block-level expressions need to be evaluated as lvalues. The big change is that CFGBlocks no longer contain Stmt*'s by CFGElements. Currently CFGElements just wrap Stmt*, but they also store a bit indicating whether the block-level expression should be evalauted as an lvalue. DeclStmts involving the initialization of a reference require us treating the initialization expression as an lvalue, even though that information isn't recorded in the AST. Conceptually this change isn't that complicated, but it required bubbling up the data through the CFGBuilder, to GRCoreEngine, and eventually to GRExprEngine. The addition of CFGElement is also useful for when we want to handle more control-flow constructs or other data we want to keep in the CFG that isn't represented well with just a block of statements. In GRExprEngine, this patch introduces logic for evaluating the lvalues of references, which currently retrieves the internal "pointer value" that the reference represents. EvalLoad does a two stage load to catch null dereferences involving an invalid reference (although this could possibly be caught earlier during the initialization of a reference). Symbols are currently symbolicated using the reference type, instead of a pointer type, and special handling is required creating ElementRegions that layer on SymbolicRegions (see the changes to RegionStoreManager). Along the way, the DeadStoresChecker also silences warnings involving dead stores to references. This was the original change I introduced (which I wrote test cases for) that I realized caused GRExprEngine to crash. llvm-svn: 91501
-
John McCall authored
standard the last time. Fixes PR5766. llvm-svn: 91493
-
Douglas Gregor authored
than using its own partial implementation of initialization. Switched CheckInitializerTypes over to InitializedEntity/InitializationKind, to help move us closer to InitializationSequence. Added InitializedEntity::getName() to retrieve the name of the entity, for diagnostics that care about such things. Implemented support for default initialization in InitializationSequence. Clean up the determination of the "source expressions" for an initialization sequence in InitializationSequence::Perform. Taught CXXConstructExpr to store more location information. llvm-svn: 91492
-
Fariborz Jahanian authored
using objective-c property. (fixes radar 7449707) llvm-svn: 91474
-
- Dec 15, 2009
-
-
John McCall authored
This test courtesy of LLVM. llvm-svn: 91462
-
Daniel Dunbar authored
clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
-
Fariborz Jahanian authored
non-existing 'isa' field of a non-existing struct type all related to legacy type definition for 'id' which we have dropped in clang in favor of a built-in type. (fixes radar 7470820). llvm-svn: 91455
-
Daniel Dunbar authored
- This is designed to make it obvious that %clang_cc1 is a "test variable" which is substituted. It is '%clang_cc1' instead of '%clang -cc1' because it can be useful to redefine what gets run as 'clang -cc1' (for example, to set a default target). llvm-svn: 91446
-
Nate Begeman authored
For hi/odd of an odd-length vector, the last component is undefined. Since we shuffle with an undef vector, no CodeGen needs to change to support this. llvm-svn: 91437
-
Mike Stump authored
Patch by Chip Davis. llvm-svn: 91436
-
Fariborz Jahanian authored
and some clean up and a block rewriter test. llvm-svn: 91435
-
Douglas Gregor authored
llvm-svn: 91433
-
Ted Kremenek authored
Until we can make the dead stores checker smarter, dont' emit dead store warnings for C++ objects (whose constructors/destructors have possible side-effects). llvm-svn: 91412
-
Eli Friedman authored
llvm-svn: 91411
-
Eli Friedman authored
llvm-svn: 91409
-
Eli Friedman authored
llvm-svn: 91396
-
John McCall authored
specifiers for out-of-line declarations, e.g. typedef Temp<int> MyTemp; template <> MyTemp::foo; llvm-svn: 91395
-
John McCall authored
I apologize for friend declarations. llvm-svn: 91359
-
- Dec 14, 2009
-
-
Fariborz Jahanian authored
llvm-svn: 91349
-
rdar://problem/7468209Ted Kremenek authored
Fix: <rdar://problem/7468209> SymbolManager::isLive() should not crash on captured block variables that are passed by reference llvm-svn: 91348
-
Fariborz Jahanian authored
an Objective-C rethrow nested inside another try/catch block. (fixes radar 7466728). llvm-svn: 91335
-
Douglas Gregor authored
- During instantiation, drop default arguments from constructor and call expressions; they'll be recomputed anyway, and we don't want to instantiate them twice. - Rewrote the instantiation of variable initializers to cope with non-dependent forms properly. Together, these fix a handful of problems I introduced with the switch to always rebuild expressions from the source code "as written." llvm-svn: 91315
-
Fariborz Jahanian authored
llvm-svn: 91309
-
Fariborz Jahanian authored
llvm-svn: 91304
-
Fariborz Jahanian authored
llvm-svn: 91303
-
Fariborz Jahanian authored
llvm-svn: 91300
-
Fariborz Jahanian authored
llvm-svn: 91299
-
Fariborz Jahanian authored
llvm-svn: 91298
-
Fariborz Jahanian authored
llvm-svn: 91297
-
Fariborz Jahanian authored
llvm-svn: 91292
-
Fariborz Jahanian authored
llvm-svn: 91290
-
Douglas Gregor authored
CompleteConstructorCall to perform type-checking. llvm-svn: 91279
-
Zhongxing Xu authored
llvm-svn: 91272
-
Chris Lattner authored
files: PR5238. llvm-svn: 91270
-
Nate Begeman authored
llvm-svn: 91269
-
Chris Lattner authored
llvm-svn: 91267
-
rdar://7466570Chris Lattner authored
expanding directives withing macro expansions. This is undefined behavior according to 6.10.3p11, so we might as well be undefined in ways similar to GCC. llvm-svn: 91266
-
Chris Lattner authored
llvm-svn: 91265
-