| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
by DeclContexts (always) rather than by statements.
DeclContext currently goes out of its way to avoid destroying any
Decls that might be owned by a DeclGroupOwningRef. However, in an
error-recovery situation, a failure in a declaration statement can
cause all of the decls in a DeclGroupOwningRef to be destroyed after
they've already be added into the DeclContext. Hence, DeclContext is
left with already-destroyed declarations, and bad things happen. This
problem was causing failures that showed up as assertions on x86 Linux
in test/Parser/objc-forcollection-neg-2.m.
llvm-svn: 64474
|
|
|
|
|
|
|
|
|
|
|
| |
-disable-free).
snaroff% time ../../Release-Asserts/bin/clang INPUTS/Cocoa_h.m
0.179u 0.051s 0:00.23 95.6% 0+0k 0+0io 0pf+0w
snaroff% time ../../Release-Asserts/bin/clang INPUTS/Cocoa_h.m -disable-free
0.169u 0.052s 0:00.22 95.4% 0+0k 0+0io 0pf+0w
llvm-svn: 63153
|
|
|
|
|
|
|
|
| |
calls to the recently added placement new (which uses ASTContext's allocator for memory). Also added ASTContext::Deallocate().
This will simplify runtime replacement of ASTContext's allocator. Keeping the allocator private (and removing getAllocator() entirely) is also goodness.
llvm-svn: 63135
|
|
|
|
|
|
| |
Patch by Timo Sirainen!
llvm-svn: 57772
|
|
|
|
|
|
| |
Serialization for OwningDeclGroupRefs now works.
llvm-svn: 57272
|
|
|
|
| |
llvm-svn: 57222
|
|
|
|
|
|
| |
Decl*. This hopefully will obviate any concerns with violating strict type-aliasing issues.
llvm-svn: 57213
|
|
|
|
| |
llvm-svn: 56749
|
|
|
|
|
|
| |
removes the type-punning errors for DeclGroup.
llvm-svn: 56708
|
|
DeclGroupOwningRef classes.
Documentation and testing are pending.
llvm-svn: 56611
|