Commit Graph

7754 Commits

Author SHA1 Message Date
Maxim Moiseev
09a6913622 RangeReplaceableCollectionType => RangeReplaceableCollection 2015-12-09 17:13:08 -08:00
Maxim Moiseev
7e2466c14e CollectionType => Collection 2015-12-09 17:12:48 -08:00
Dmitri Gribenko
feacbc4433 Rename ErrorType to ErrorProtocol 2015-12-09 17:12:19 -08:00
Dmitri Gribenko
99d3f96c6d Rename IndexingGenerator to CollectionDefaultIterator 2015-12-09 17:12:07 -08:00
Max Moiseev
67f02296a4 Fixing validation tests
There is no longer a free `map` function so one of the crashers goes to
'fixed', and another one is changed to use `print` instead of a
`println`.
2015-12-09 17:11:54 -08:00
Dmitri Gribenko
1c0047829a Rename SequenceType.generate() to SequenceType.iterator() 2015-12-09 17:11:17 -08:00
Dmitri Gribenko
2cf172160c Rename SequenceType.Generator associated type to SequenceType.Iterator 2015-12-09 17:11:05 -08:00
David Walter
dacd6834a6 Merge remote-tracking branch 'apple/master' 2015-12-08 20:28:54 +01:00
Nadav Rotem
a652945d9a Revert "A small step towards removing C-style loops"
This reverts commit 0d001480a9.

The commit that changed the iteration style from c-based loops into for-each
loops caused major regressions in our string benchmarks. Arnold believes that we
are making a different inlining decision in the for-each loops. We should
reapply this patch after we fix the optimizer

The regression was detected in rdar://23776732.
2015-12-08 09:17:17 -08:00
Chris Lattner
1a1ccd1975 My diagnostics changes from last night fixed these three crashers, move them and remove --crash. 2015-12-08 09:02:24 -08:00
Arnold Schwaighofer
4b22a31154 ArraySemantics: Remove getArrayPropertyIsNative - we are only using
hoistableIsNativeTypeChecked these days.
2015-12-08 07:34:25 -08:00
Dmitri Gribenko
31598d41bf Rename GeneratorType to IteratorProtocol 2015-12-07 17:08:32 -08:00
Max Moiseev
d0e1cb3a0e Merge remote-tracking branch 'origin/master' into swift-3-api-guidelines 2015-12-07 16:43:20 -08:00
David Walter
8ed7ae92aa Merge remote-tracking branch 'apple/master' 2015-12-08 00:03:48 +01:00
Jacob Bandes-Storch
e437a0e14c Fix duplicate error and re-categorize test
This crashing test became non-crashing in #138. #138 also emitted multiple instances of the same diagnostic, which was causing -verify to fail on decl/protocol/req/recursion.swift.
2015-12-07 02:28:37 -08:00
David Walter
4d80d1001b Reverted unnecessary changes 2015-12-07 02:47:17 +01:00
Jacob Bandes-Storch
b8bfdbc72e Fix logic error in ArchetypeBuilder::mapTypeIntoContext 2015-12-06 14:33:06 -08:00
Dmitri Gribenko
a35567d5be Merge pull request #280 from practicalswift/sync-with-swift-compiler-crashes-20151206
Sync with https://github.com/practicalswift/swift-compiler-crashes
2015-12-06 14:00:01 -08:00
practicalswift
ebdf6805ba Remote "not" from RUN line of valid programs. 2015-12-06 22:30:18 +01:00
David Walter
e178c513fd Removed C-style loops and postincrements
Removed some C-style loops and postincrements
2015-12-06 16:38:47 +01:00
practicalswift
7907831a45 Mark as fixed (RUN). 2015-12-06 06:19:43 -05:00
practicalswift
aff2d73867 Mark as fixed. 2015-12-06 06:17:23 -05:00
practicalswift
f781fbb820 Sync with https://github.com/practicalswift/swift-compiler-crashes
Add 342 compiler crashes.
2015-12-06 05:34:53 -05:00
David Farler
846a6dcf07 Revert "Fix test flags"
This reverts commit e0b4d55545.

Revert "Include crashing test case"

This reverts commit e5dd189aaf.

Revert "Compare rvalue types in assertion"

This reverts commit 1952739f9d.

This series of commits still was leading to a crash in IRGen.
There is an incorrect ref_to_unmanaged further up in the function
with the wrong input type, so something is weird with preparing
the AutoreleasingUnsafeMutablePointer.

https://bugs.swift.org/browse/SR-87
2015-12-06 02:15:21 -08:00
Joe Groff
46a1435601 Merge pull request #273 from CodaFi/argh-values
Use a More Specific Assert for RValue Type Lowering
2015-12-05 22:59:53 -08:00
Robert Widmann
e0b4d55545 Fix test flags 2015-12-06 01:55:43 -05:00
Robert Widmann
e5dd189aaf Include crashing test case 2015-12-06 01:50:53 -05:00
Dmitri Gribenko
4b8fff424b Merge pull request #270 from hamin/cleaning-up-cstyle-loops
A small step towards removing C-style loops
2015-12-05 22:47:26 -08:00
Haris Amin
0d001480a9 A small step towards removing C-style loops 2015-12-06 01:07:24 -05:00
Joe Groff
a42ce379ee Merge pull request #218 from Inari-Whitebear/master
Change language in test case to more accurately describe peer relationship of threads
2015-12-05 20:15:22 -08:00
Inari
199ac1585d Fix potentially inconsiderate/inaccurate naming 2015-12-05 18:31:53 +01:00
Jordan Rose
90c5cfea4d [test] Add a Linux test for indirect link dependencies relying on -L.
This is the Linux equivalent of 3731a2ff0. There's probably a way to
merge them into one file cleanly, but the extra linker args on OS X
make it a little tricky. I'm deciding not to worry about it right now.
2015-12-04 17:58:27 -07:00
Inari
0e8a37bdee Properly fix potentially inconsiderate naming 2015-12-05 01:01:53 +01:00
Chris Willmore
821a5a6462 Merge pull request #163 from jtbandes/master
Fix crash when considering invalid binary operator function for resolution.

<rdar://23719809&23720006>
2015-12-04 15:29:12 -08:00
Jacob Bandes-Storch
56e13fccfd Fix crash when considering invalid binary operator function for resolution <rdar://23719809&23720006>
This fixes compiler crashes resulting from an invalid FuncDecl which is later considered while resolving a binary application.
2015-12-04 14:43:12 -08:00
Erik Eckstein
0b8025430f stdlib tests: Fix linker error on linux 2015-12-04 12:58:38 -08:00
Jordan Rose
4f9367041f [Driver] Always use the runtime resource library path for DYLD_LIBRARY_PATH.
...when interpreting. Otherwise, the script may depend on library X, which
depends on library Y, where library Y is a standard Swift library, located
in lib/swift/$PLATFORM/.

Finishes rdar://problem/23588774
2015-12-04 12:18:48 -08:00
Jordan Rose
3731a2ff0c [test] Add a test for indirect link dependencies relying on -L.
...as described in rdar://problem/23588774. We don't really have a good way
to make this test cross-platform as such, but I'll add a Linux version soon.
2015-12-04 12:18:47 -08:00
Joe Groff
f97b46170f Typo 2015-12-04 10:42:41 -08:00
pcbro
8bda440bb9 Fix inconsiderate naming 2015-12-04 10:01:57 +00:00
Ted Kremenek
fba073f39c Merge pull request #109 from rogergzou/rev3
whitespace
2015-12-03 14:48:50 -08:00
Roger Z
741a31bf57 whitespace 2015-12-03 16:41:15 -05:00
James McLaughlin
9da5899652 Consistently use env(1) to resolve bash and python paths 2015-12-03 20:55:27 +00:00
Dmitri Gribenko
174d475833 stdlib: Remove unavavailable APIs that were left as migration aids
These APIs are from the Swift 1.2 => Swift 2.0 transition, and are not
relevant anymore.

Removing them reduces the surface area of the library that needs to be
reviewed.
2015-12-02 01:19:50 -08:00
Dmitri Gribenko
4f8773f40e Add a test feature 'swift_ast_verifier' 2015-11-30 21:07:13 -07:00
Erik Eckstein
461cf5359b tests: Improve comment for StdlibUnittest-import workaround. 2015-11-30 13:11:00 -08:00
Erik Eckstein
308f39fe56 stdlib tests: add import statements to prevent unresolved symbols when compiling StdlibUnittest with -sil-serialize-all.
rdar://problem/18917405
2015-11-19 15:18:18 -08:00
Michael Gottesman
45308f68b1 Try apply insts can also have guaranteed parameters.
This was a piece of code that was not updated with FullApplySite when try_apply
was added.

rdar://23505191
2015-11-19 08:33:56 -08:00
Chris Lattner
b219c9b9ee Update validation test to reflect diagnostic changes. Have I ever mentioned
that it doesn't make sense for validation tests to be checking diagnostics?
2015-11-17 21:34:15 -08:00
Joe Groff
fbd2e4d872 Rename @asmname to @_silgen_name.
This reflects the fact that the attribute's only for compiler-internal use, and isn't really equivalent to C's asm attribute, since it doesn't change the calling convention to be C-compatible.
2015-11-17 14:13:48 -08:00