mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge remote-tracking branch 'origin/master' into master-next
This commit is contained in:
@@ -1337,12 +1337,6 @@ static bool processCommandLineAndRunImmediately(CompilerInvocation &Invocation,
|
||||
ProcessCmdLine(opts.ImmediateArgv.begin(), opts.ImmediateArgv.end());
|
||||
Instance.setSILModule(std::move(SM));
|
||||
|
||||
|
||||
PrettyStackTraceStringAction trace(
|
||||
"running user code",
|
||||
MSF.is<SourceFile *>() ? MSF.get<SourceFile *>()->getFilename()
|
||||
: MSF.get<ModuleDecl *>()->getModuleFilename());
|
||||
|
||||
ReturnValue =
|
||||
RunImmediately(Instance, CmdLine, IRGenOpts, Invocation.getSILOptions());
|
||||
return Instance.getASTContext().hadError();
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
|
||||
// RUN: echo %s > %t.filelist.txt
|
||||
// RUN: not --crash %target-swift-frontend -interpret -filelist %t.filelist.txt 2>&1 | %FileCheck %s
|
||||
|
||||
// CHECK: Stack dump:
|
||||
// CHECK-NEXT: Program arguments:
|
||||
// CHECK-NEXT: Swift version
|
||||
// CHECK-NEXT: Contents of {{.*}}.filelist.txt:
|
||||
// CHECK-NEXT: ---
|
||||
// CHECK-NEXT: crash-in-user-code.swift
|
||||
// CHECK-NEXT: ---
|
||||
// CHECK-NEXT: While running user code "{{.*}}crash-in-user-code.swift"
|
||||
|
||||
let x: Int? = nil
|
||||
x!
|
||||
Reference in New Issue
Block a user