Commit Graph

4 Commits

Author SHA1 Message Date
Mishal Shah
3d2056dd09 Revert "Sema: Targeted fix for LLDB REPL issue"
Test failing:
Swift.IDE.print_ast_tc_decls.swift
Swift.attr.attr_objc.swift
Swift.attr.attr_objc_clang.swift

This reverts commit 1a640d4ff8.
2015-11-20 18:59:44 -08:00
Slava Pestov
1a640d4ff8 Sema: Targeted fix for LLDB REPL issue
LLDB changes accessiblity of declarations after type checking,
which is not a good idea because it is likely to break invariants.
Indeed, the validateFixedLayoutAttribute() / hasFixedLayout()
logic was not prepared for this possibility.

This is a targeted fix to address the immediate breakage. A better
fix would be to change LLDB, and also to change Sema to store the
global -enable-resilience flag state in a bit in the serialized
module, instead of sticking it on every declaration.

Fixes <rdar://problem/23545959>.
2015-11-20 17:00:38 -07:00
Mark Lacey
517723dbe9 Add -enable-sil-verify-all to sil-opt tests.
Also remove -verify from almost all of them, since only two actually
have expected diagnostic output that is tested.

Swift SVN r32198
2015-09-24 07:25:15 +00:00
Joe Groff
e4e0f35aed IRGen: Implement an @_alignment attribute.
This is an internal-only affordance for the numerics team to be able to work on SIMD-compatible types. For now, it can only increase alignment of fixed-layout structs and enums; dynamic layout, classes, and other obvious extensions are left to another day when we can design a proper layout control design.

Swift SVN r27323
2015-04-15 17:23:30 +00:00