Commit Graph

59 Commits

Author SHA1 Message Date
Michael Gottesman
86620aaa7e Merge pull request #9318 from practicalswift/redundant-types-in-casts
[gardening] Remove redundant repetition of type names (DRY): RepeatedTypeName foo = dyn_cast<RepeatedTypeName>(bar)
2017-05-05 13:37:12 -07:00
practicalswift
492f5cd35a [gardening] Remove redundant repetition of type names (DRY): RepeatedTypeName foo = dyn_cast<RepeatedTypeName>(bar)
Replace `NameOfType foo = dyn_cast<NameOfType>(bar)` with DRY version `auto foo = dyn_cast<NameOfType>(bar)`.

The DRY auto version is by far the dominant form already used in the repo, so this PR merely brings the exceptional cases (redundant repetition form) in line with the dominant form (auto form).

See the [C++ Core Guidelines](https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#es11-use-auto-to-avoid-redundant-repetition-of-type-names) for a general discussion on why to use `auto` to avoid redundant repetition of type names.
2017-05-05 09:45:53 +02:00
Joe Shajrawi
018e79716f Large loadable types pass: resolves a case wherein a tuple’s extracted type is a function signature 2017-05-04 16:54:33 -07:00
Joe Shajrawi
746fd2841a Fixes a bug in large loadable types wherein only the callee type of Apply is changed 2017-05-04 13:05:09 -07:00
practicalswift
3aff1f9d9f [gardening] Replace dyn_cast<X>(y) with isa<X>(y) where appropriate 2017-05-04 15:24:02 +02:00
Joe Shajrawi
91911991cf Large loadable types: Fixes a bug wherein we did not update an Apply’s result type in case it is a function type 2017-05-03 15:17:40 -07:00
Joe Shajrawi
4fe3a46265 Fix an issue that was uncovered by the linux fix: resolves verifier bug in 32-bit code 2017-05-01 18:41:21 -07:00
Joe Shajrawi
33db65db2e Fix runtime failure on Linux due to large values by address pass 2017-05-01 16:28:03 -07:00
Joe Shajrawi
4dc0801785 IRGen Mandatory Module Pass: Pass large loadable types by address instead of by value 2017-05-01 12:04:06 -07:00