| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
llvm-svn: 91507
|
| |
|
|
| |
llvm-svn: 91506
|
| |
|
|
| |
llvm-svn: 91505
|
| |
|
|
| |
llvm-svn: 91504
|
| |
|
|
| |
llvm-svn: 91503
|
| |
|
|
| |
llvm-svn: 91502
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 91500
|
| |
|
|
|
|
| |
__builtin_unreachable. WIP.
llvm-svn: 91499
|
| |
|
|
| |
llvm-svn: 91498
|
| |
|
|
|
|
| |
Action::FullExpr to Action::MakeFullExpr to avoid name clashes.
llvm-svn: 91494
|
| |
|
|
|
|
| |
standard the last time. Fixes PR5766.
llvm-svn: 91493
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
using objective-c property. (fixes radar 7449707)
llvm-svn: 91474
|
| |
|
|
|
|
| |
veneer on top of getRegionValueSymbolVal().
llvm-svn: 91471
|
| |
|
|
|
|
| |
This test courtesy of LLVM.
llvm-svn: 91462
|
| |
|
|
|
|
|
| |
clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to
garbage).
llvm-svn: 91460
|
| |
|
|
|
|
|
|
|
| |
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
|
| |
|
|
| |
llvm-svn: 91450
|
| |
|
|
|
|
|
|
|
|
| |
on PR5610 (2.185 -> 2.130s). The big issue is that this is making
insanely huge macro argument lists with over a million tokens in it.
The reason that mallco and free are so expensive is that we are
actually going to the kernel to get it, and switching to a bump
pointer allocator won't change this in an interesting way.
llvm-svn: 91449
|
| |
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
| |
underlying expr instead. Add getNumDefaultArgTemporaries and getDefaultArgTemporary which returns the temporaries a default arg creates.
llvm-svn: 91439
|
| |
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Patch by Chip Davis.
llvm-svn: 91436
|
| |
|
|
|
|
| |
and some clean up and a block rewriter test.
llvm-svn: 91435
|
| |
|
|
| |
llvm-svn: 91433
|
| |
|
|
| |
llvm-svn: 91431
|
| |
|
|
| |
llvm-svn: 91430
|
| |
|
|
| |
llvm-svn: 91429
|
| |
|
|
|
|
|
| |
want some clients of QualType to think it's a pod and some to
not know it is.
llvm-svn: 91424
|
| |
|
|
|
|
|
|
|
| |
Remove isPod() from DenseMapInfo, splitting it out to its own
isPodLike type trait. This is a generally useful type trait for
more than just DenseMap, and we really care about whether something
acts like a pod, not whether it really is a pod.
llvm-svn: 91422
|
| |
|
|
| |
llvm-svn: 91415
|
| |
|
|
| |
llvm-svn: 91414
|
| |
|
|
|
|
|
| |
note_previous_decl was used where note_previous_declaration was intended. Better
names or PR5785 might be nice.
llvm-svn: 91413
|
| |
|
|
|
|
| |
warnings for C++ objects (whose constructors/destructors have possible side-effects).
llvm-svn: 91412
|
| |
|
|
| |
llvm-svn: 91411
|
| |
|
|
| |
llvm-svn: 91409
|
| |
|
|
|
|
|
|
|
| |
attribute to function pointers. It also fixes Sema to check function
pointers for the noreturn attribute when checking for fallthrough.
Patch by Chip Davis, with a slight fix to pass the testsuite.
llvm-svn: 91408
|
| |
|
|
| |
llvm-svn: 91398
|
| |
|
|
| |
llvm-svn: 91396
|
| |
|
|
|
|
|
|
| |
specifiers for out-of-line declarations, e.g.
typedef Temp<int> MyTemp;
template <> MyTemp::foo;
llvm-svn: 91395
|
| |
|
|
| |
llvm-svn: 91394
|
| |
|
|
|
|
|
|
|
| |
We creating and free thousands of MacroArgs objects (and the related
std::vectors hanging off them) for the testcase in PR5610 even though
there are only ~20 live at a time. This doesn't actually use the
cache yet.
llvm-svn: 91391
|
| |
|
|
|
|
|
|
| |
now, don't construct CFGs that contain C++ try/catch statements, and
have GRExprEngine abort a path if it encounters a C++ construct it
doesn't understand (which is mostly everything at this point).
llvm-svn: 91389
|
| |
|
|
| |
llvm-svn: 91386
|
| |
|
|
|
|
| |
already found itself.
llvm-svn: 91384
|
| |
|
|
|
|
| |
-fcatch-undefined-behavior if we aren't optimizing. WIP.
llvm-svn: 91382
|
| |
|
|
|
|
| |
instead of abort to improve codesize and codegen.
llvm-svn: 91374
|
| |
|
|
| |
llvm-svn: 91373
|
| |
|
|
|
|
|
| |
resources (e.g., /usr/lib/clang/1.1) to be passed on the command line instead of
computed.
llvm-svn: 91370
|